line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Tree; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: build and scan parse-trees of HTML |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# HTML::Tree is basically just a happy alias to HTML::TreeBuilder. |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
49802
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
8
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '5.07'; # VERSION from OurPkgVersion |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
439
|
use HTML::TreeBuilder (); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
98
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
4
|
|
|
4
|
1
|
16338
|
shift; |
17
|
4
|
|
|
|
|
13
|
unshift @_, 'HTML::TreeBuilder'; |
18
|
4
|
|
|
|
|
21
|
goto &HTML::TreeBuilder::new; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub new_from_file { |
22
|
3
|
|
|
3
|
1
|
11565
|
shift; |
23
|
3
|
|
|
|
|
9
|
unshift @_, 'HTML::TreeBuilder'; |
24
|
3
|
|
|
|
|
17
|
goto &HTML::TreeBuilder::new_from_file; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub new_from_content { |
28
|
3
|
|
|
3
|
1
|
8397
|
shift; |
29
|
3
|
|
|
|
|
10
|
unshift @_, 'HTML::TreeBuilder'; |
30
|
3
|
|
|
|
|
12
|
goto &HTML::TreeBuilder::new_from_content; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub new_from_url { |
34
|
4
|
|
|
4
|
1
|
55326
|
shift; |
35
|
4
|
|
|
|
|
17
|
unshift @_, 'HTML::TreeBuilder'; |
36
|
4
|
|
|
|
|
19
|
goto &HTML::TreeBuilder::new_from_url; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |