line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package POE::Resources; |
2
|
|
|
|
|
|
|
|
3
|
179
|
|
|
179
|
|
1653
|
use strict; |
|
178
|
|
|
|
|
222
|
|
|
178
|
|
|
|
|
6385
|
|
4
|
|
|
|
|
|
|
|
5
|
178
|
|
|
178
|
|
892
|
use vars qw($VERSION); |
|
178
|
|
|
|
|
220
|
|
|
178
|
|
|
|
|
27830
|
|
6
|
|
|
|
|
|
|
$VERSION = '1.365'; # NOTE - Should be #.### (three decimal places) |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my @resources = qw( |
9
|
|
|
|
|
|
|
POE::XS::Resource::Aliases |
10
|
|
|
|
|
|
|
POE::XS::Resource::Events |
11
|
|
|
|
|
|
|
POE::XS::Resource::Extrefs |
12
|
|
|
|
|
|
|
POE::XS::Resource::FileHandles |
13
|
|
|
|
|
|
|
POE::XS::Resource::SIDs |
14
|
|
|
|
|
|
|
POE::XS::Resource::Sessions |
15
|
|
|
|
|
|
|
POE::XS::Resource::Signals |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub load { |
19
|
177
|
|
|
177
|
1
|
3179
|
my $package = (caller())[0]; |
20
|
|
|
|
|
|
|
|
21
|
177
|
|
|
|
|
500
|
foreach my $resource (@resources) { |
22
|
176
|
|
|
176
|
|
36112
|
eval "package $package; use $resource"; |
|
0
|
|
|
176
|
|
0
|
|
|
0
|
|
|
175
|
|
0
|
|
|
176
|
|
|
176
|
|
68331
|
|
|
176
|
|
|
176
|
|
470
|
|
|
176
|
|
|
176
|
|
2923
|
|
|
175
|
|
|
176
|
|
34090
|
|
|
1
|
|
|
176
|
|
41
|
|
|
1
|
|
|
176
|
|
12
|
|
|
176
|
|
|
176
|
|
69912
|
|
|
175
|
|
|
176
|
|
416
|
|
|
175
|
|
|
176
|
|
2886
|
|
|
176
|
|
|
175
|
|
34258
|
|
|
1
|
|
|
175
|
|
34
|
|
|
1
|
|
|
|
|
17
|
|
|
176
|
|
|
|
|
68545
|
|
|
176
|
|
|
|
|
433
|
|
|
176
|
|
|
|
|
2962
|
|
|
176
|
|
|
|
|
35130
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
176
|
|
|
|
|
79192
|
|
|
176
|
|
|
|
|
489
|
|
|
176
|
|
|
|
|
3585
|
|
|
176
|
|
|
|
|
36671
|
|
|
1
|
|
|
|
|
37
|
|
|
1
|
|
|
|
|
13
|
|
|
176
|
|
|
|
|
70189
|
|
|
175
|
|
|
|
|
411
|
|
|
175
|
|
|
|
|
6506
|
|
|
176
|
|
|
|
|
33668
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
176
|
|
|
|
|
77062
|
|
|
175
|
|
|
|
|
418
|
|
|
175
|
|
|
|
|
3073
|
|
|
175
|
|
|
|
|
34260
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
175
|
|
|
|
|
83371
|
|
|
175
|
|
|
|
|
437
|
|
|
175
|
|
|
|
|
3247
|
|
|
2462
|
|
|
|
|
133083
|
|
23
|
2462
|
100
|
|
|
|
8802
|
if ($@) { |
24
|
|
|
|
|
|
|
# Retry the resource, removing XS:: if it couldn't be loaded. |
25
|
|
|
|
|
|
|
# If there's no XS:: to be removed, fall through and die. |
26
|
1231
|
100
|
100
|
|
|
14679
|
redo if $@ =~ /Can't locate.*?in \@INC/ and $resource =~ s/::XS::/::/; |
27
|
2
|
|
|
|
|
13
|
die; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |