line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package use; |
2
|
1
|
|
|
1
|
|
518
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
4
|
1
|
|
|
1
|
|
27
|
use 5.008; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
47
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
6
|
1
|
|
|
1
|
|
5
|
use base 'use::perl5'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
512
|
|
7
|
1
|
|
|
1
|
|
6
|
use version 0.86 'is_lax'; |
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
6
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub use { |
10
|
0
|
|
|
0
|
|
0
|
unshift @_, __PACKAGE__; |
11
|
0
|
|
|
|
|
0
|
goto &{__PACKAGE__->can('import')}; |
|
0
|
|
|
|
|
0
|
|
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub import { |
15
|
1
|
50
|
|
1
|
|
12
|
return unless @_; |
16
|
1
|
|
|
|
|
2
|
my $class = shift(@_); |
17
|
1
|
50
|
33
|
|
|
6
|
if (@_ and is_lax($_[0])) { |
18
|
0
|
|
|
|
|
0
|
my $perl_version = version->parse(shift(@_))->numify; |
19
|
0
|
0
|
|
|
|
0
|
eval "use $perl_version; 1" or die $@; |
20
|
0
|
0
|
0
|
|
|
0
|
if ($perl_version >= 5.009003 and $perl_version < 6) { |
21
|
0
|
|
|
|
|
0
|
my $sub_version = int(($perl_version - 5) * 1000); |
22
|
0
|
|
|
|
|
0
|
push @_, ( |
23
|
|
|
|
|
|
|
strict => |
24
|
|
|
|
|
|
|
feature => [":5.$sub_version"], |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
1
|
|
|
|
|
155
|
unshift @_, $class; |
29
|
1
|
|
|
|
|
1
|
goto &{use::perl5->can('importer')}; |
|
1
|
|
|
|
|
17
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |