line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Hacker.pm,v 0.1 2006/03/25 12:20:27 dankogai Exp dankogai $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
package Poem; |
5
|
1
|
|
|
1
|
|
28113
|
use 5.008001; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
40
|
|
6
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
45
|
|
7
|
1
|
|
|
1
|
|
12
|
use warnings; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
301
|
|
8
|
|
|
|
|
|
|
our $VERSION = sprintf "%d.%02d", q$Revision: 0.1 $ =~ /(\d+)/g; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
package Another; |
11
|
|
|
|
|
|
|
sub Just{ |
12
|
6
|
|
|
6
|
|
10
|
my $another = shift; |
13
|
6
|
|
|
|
|
8
|
my $perl_hacker = shift; |
14
|
6
|
|
66
|
|
|
40
|
my $just = (caller(1))[3] || (caller(0))[3]; |
15
|
|
|
|
|
|
|
# warn $just; |
16
|
6
|
|
|
|
|
24
|
$just =~ s/.*:://o; |
17
|
6
|
|
|
|
|
35
|
"$just $another $perl_hacker"; |
18
|
|
|
|
|
|
|
} |
19
|
3
|
|
|
3
|
|
8
|
sub Yet { Just(@_) } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
package Hacker; |
22
|
|
|
|
|
|
|
sub Perl{ |
23
|
6
|
|
|
6
|
|
26
|
my $hacker = shift; |
24
|
6
|
|
|
|
|
42
|
my $perl = (caller(0))[3]; |
25
|
6
|
|
|
|
|
42
|
$perl =~ s/.*:://o; |
26
|
6
|
|
|
|
|
32
|
"$perl $hacker"; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
*Porter::Perl = \&Hacker::Perl; |
29
|
|
|
|
|
|
|
*Poet::Perl = \&Hacker::Perl; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__END__ |