line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Void.pm 6 2005-09-27 15:18:00Z ryo $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Acme::Void; |
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
10119
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
162
|
|
8
|
5
|
|
|
5
|
|
199
|
use 5.006; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
377
|
|
9
|
5
|
|
|
5
|
|
29
|
use vars qw($VERSION); |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
367
|
|
10
|
5
|
|
|
5
|
|
26
|
use base qw(Class::BlackHole); |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
4627
|
|
11
|
5
|
|
|
5
|
|
2739
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
153
|
|
12
|
5
|
|
|
5
|
|
5171
|
use Want; |
|
5
|
|
|
|
|
13911
|
|
|
5
|
|
|
|
|
906
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$VERSION = '0.02'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub import { |
17
|
5
|
|
|
5
|
|
41
|
my $class = shift; |
18
|
5
|
|
|
|
|
14
|
my $pkg = caller(0); |
19
|
|
|
|
|
|
|
|
20
|
5
|
|
|
|
|
13
|
my @void = qw(void); |
21
|
1
|
|
|
|
|
17
|
push @void, qw(empty nil noop nothing null) |
22
|
5
|
100
|
|
|
|
26
|
if scalar grep { $_ eq ':all' } @_; |
23
|
|
|
|
|
|
|
|
24
|
5
|
|
|
5
|
|
194
|
no strict 'refs'; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
876
|
|
25
|
5
|
|
|
|
|
39
|
for(@void){ |
26
|
10
|
|
|
|
|
9784
|
*{$pkg . "::$_"} = sub :lvalue { |
27
|
44
|
100
|
|
44
|
|
3479
|
lnoreturn |
28
|
|
|
|
|
|
|
if want qw(LVALUE ASSIGN); |
29
|
30
|
100
|
|
0
|
|
10381
|
return my $self = bless sub {}, $class |
|
0
|
|
|
|
|
0
|
|
30
|
|
|
|
|
|
|
if want qw(OBJECT LVALUE); |
31
|
23
|
|
|
|
|
1047
|
return; |
32
|
10
|
|
|
|
|
42
|
}; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |