line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package LiBot::Handler::CoreList; |
2
|
2
|
|
|
2
|
|
1783
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
78
|
|
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
72
|
|
4
|
2
|
|
|
2
|
|
11
|
use utf8; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
14
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
6797
|
use Module::CoreList; |
|
2
|
|
|
|
|
104764
|
|
|
2
|
|
|
|
|
26
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
1263
|
use Mouse; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
25
|
|
9
|
2
|
|
|
2
|
|
1032
|
no Mouse; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
11
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init { |
12
|
1
|
|
|
1
|
0
|
2
|
my ($self, $bot) = @_; |
13
|
1
|
|
|
|
|
9
|
$bot->register( |
14
|
|
|
|
|
|
|
qr/^corelist\s+([A-Za-z:_]+)$/ => \&_handler |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _handler { |
19
|
2
|
|
|
2
|
|
3
|
my ($cb, $event, $module) = @_; |
20
|
2
|
|
|
|
|
12
|
my $r = Module::CoreList->first_release($module); |
21
|
2
|
100
|
|
|
|
36714
|
if (defined $r) { |
22
|
1
|
|
|
|
|
11
|
$cb->("${module} was first released with perl $r"); |
23
|
|
|
|
|
|
|
} else { |
24
|
1
|
|
|
|
|
14
|
$cb->("${module} was not in CORE (or so I think)"); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
__END__ |