line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::Literal; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
34
|
use 5.006; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
63
|
|
4
|
1
|
|
|
1
|
|
121
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
46
|
|
5
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
55
|
|
6
|
1
|
|
|
1
|
|
70
|
use File::Glob (); |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
77
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
$XML::Literal::VERSION = '0.02'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
1
|
|
|
1
|
|
3
|
my $class = shift; |
12
|
1
|
|
|
|
|
3
|
my $callback = shift; |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
7
|
no warnings 'redefine'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
308
|
|
15
|
|
|
|
|
|
|
*CORE::GLOBAL::glob = sub { |
16
|
6
|
100
|
|
6
|
|
60
|
if ($_[0] =~ m{^\s*<}) { |
|
|
100
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# Looks like < > |
18
|
2
|
|
|
|
|
6
|
goto &$callback; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
elsif ($_[0] =~ m{/\w*\s*$}) { |
21
|
|
|
|
|
|
|
# Looks like or ...\ |
22
|
3
|
|
|
|
|
9
|
@_ = "<$_[0]>"; |
23
|
3
|
|
|
|
|
10
|
goto &$callback; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
else { |
26
|
|
|
|
|
|
|
# Looks like file globbing |
27
|
1
|
|
|
|
|
136
|
goto &File::Glob::glob; |
28
|
|
|
|
|
|
|
} |
29
|
1
|
|
|
|
|
30
|
}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |