line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package the; |
2
|
3
|
|
|
3
|
|
95036
|
use 5.006001; |
|
3
|
|
|
|
|
12
|
|
|
3
|
|
|
|
|
155
|
|
3
|
3
|
|
|
3
|
|
16
|
no warnings 'redefine'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1188
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.15'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub import { |
7
|
1
|
|
|
1
|
|
3
|
my $package = caller; |
8
|
5
|
50
|
|
4
|
|
33
|
*{"${package}::$_"} = sub { return wantarray ? @_ : $_[0] } |
|
4
|
|
|
|
|
28
|
|
9
|
1
|
|
|
|
|
4
|
for qw(a an teh the more); |
10
|
1
|
|
|
|
|
3
|
my ($class, $module) = @_; |
11
|
1
|
50
|
|
|
|
2392
|
if ($module) { |
12
|
0
|
|
|
|
|
0
|
eval "require $module"; |
13
|
0
|
0
|
|
|
|
0
|
die $@ if $@; |
14
|
0
|
|
|
|
|
0
|
splice @_, 0, 1; |
15
|
0
|
0
|
|
|
|
0
|
my $import = $module->can('import') |
16
|
|
|
|
|
|
|
or return; |
17
|
0
|
|
|
|
|
0
|
goto &$import; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub unimport { |
22
|
1
|
|
|
1
|
|
8
|
my $package = caller; |
23
|
5
|
50
|
|
1
|
|
27
|
*{"${package}::$_"} = sub { return wantarray ? @_ : $_[0] } |
|
1
|
|
|
|
|
15
|
|
24
|
1
|
|
|
|
|
5
|
for qw(a an teh the more); |
25
|
1
|
|
|
|
|
2
|
my ($class, $module) = @_; |
26
|
1
|
50
|
|
|
|
5
|
if ($module) { |
27
|
1
|
|
|
|
|
39
|
eval "require $module"; |
28
|
1
|
50
|
|
|
|
5
|
die $@ if $@; |
29
|
1
|
|
|
|
|
3
|
splice @_, 0, 1; |
30
|
1
|
50
|
|
|
|
14
|
my $unimport = $module->can('unimport') |
31
|
|
|
|
|
|
|
or return; |
32
|
1
|
|
|
|
|
1827
|
goto &$unimport; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
*{"a::"} = |
38
|
|
|
|
|
|
|
*{"an::"} = |
39
|
|
|
|
|
|
|
*{"more::"} = |
40
|
|
|
|
|
|
|
*{"teh::"} = |
41
|
|
|
|
|
|
|
*{"the::"}; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=encoding utf8 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
the - This is teh, best module evar! |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 SYNOPSIS |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
use the Moose; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
has teh stuffz => (is => a 'rw'); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
the my an $a = teh $b + a $c; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
no more 'Moose'; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 DESCRIPTION |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
teh module exports the subroutine and the module exports a subroutine. |
64
|
|
|
|
|
|
|
Just use an module, then use more subroutine. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Ingy döt Net |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Copyright (c) 2008. Ingy döt Net. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
75
|
|
|
|
|
|
|
under the same terms as Perl itself. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
See http://www.perl.com/perl/misc/Artistic.html |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |