line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::Songmu; |
2
|
3
|
|
|
3
|
|
143187
|
use 5.010; |
|
3
|
|
|
|
|
38
|
|
3
|
3
|
|
|
3
|
|
16
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
54
|
|
4
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
66
|
|
5
|
3
|
|
|
3
|
|
491
|
use utf8; |
|
3
|
|
|
|
|
16
|
|
|
3
|
|
|
|
|
17
|
|
6
|
3
|
|
|
3
|
|
1187
|
use Encode; |
|
3
|
|
|
|
|
18944
|
|
|
3
|
|
|
|
|
198
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
1091
|
use version 0.77; our $VERSION = version->declare("v0.1.0"); |
|
3
|
|
|
|
|
4482
|
|
|
3
|
|
|
|
|
17
|
|
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
1559
|
use Time::Piece (); |
|
3
|
|
|
|
|
25524
|
|
|
3
|
|
|
|
|
200
|
|
11
|
|
|
|
|
|
|
use Class::Accessor::Lite::Lazy 0.03 ( |
12
|
|
|
|
|
|
|
ro => [qw/birthday first_name last_name/], |
13
|
|
|
|
|
|
|
ro_lazy => { |
14
|
|
|
|
|
|
|
age => sub { |
15
|
|
|
|
|
|
|
int( |
16
|
0
|
|
|
|
|
0
|
(Time::Piece->localtime->strftime('%Y%m%d') - |
17
|
|
|
|
|
|
|
shift->birthday->strftime('%Y%m%d') |
18
|
|
|
|
|
|
|
) / 10000) |
19
|
|
|
|
|
|
|
}, |
20
|
|
|
|
|
|
|
}, |
21
|
3
|
|
|
3
|
|
1199
|
); |
|
3
|
|
|
|
|
6630
|
|
|
3
|
|
|
|
|
24
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub instance { |
24
|
4
|
|
|
4
|
1
|
3464
|
state $_instance = bless { |
25
|
|
|
|
|
|
|
birthday => Time::Piece->strptime('1980-06-05', '%Y-%m-%d'), |
26
|
|
|
|
|
|
|
first_name => 'Masayuki', |
27
|
|
|
|
|
|
|
last_name => 'Matsuki', |
28
|
|
|
|
|
|
|
}, __PACKAGE__; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub name { |
32
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
33
|
1
|
|
|
|
|
5
|
sprintf '%s %s', $self->first_name, $self->last_name; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub gmu { |
37
|
1
|
|
|
1
|
1
|
1247
|
say encode_utf8 'ぐむー'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |