line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package RDF::Simple::Parser::Attribs; |
3
|
|
|
|
|
|
|
|
4
|
8
|
|
|
8
|
|
57
|
use Carp; |
|
8
|
|
|
|
|
20
|
|
|
8
|
|
|
|
|
433
|
|
5
|
8
|
|
|
8
|
|
49
|
use Data::Dumper; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
367
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Use a hash to implement objects of this type: |
8
|
|
|
|
|
|
|
use Class::MethodMaker [ |
9
|
8
|
|
|
|
|
58
|
scalar => [ qw( qnames x ) ], |
10
|
8
|
|
|
8
|
|
4534
|
]; |
|
8
|
|
|
|
|
134643
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our |
13
|
|
|
|
|
|
|
$VERSION = 1.31; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
104
|
|
|
104
|
0
|
964
|
my ($class, $attrs) = @_; |
17
|
|
|
|
|
|
|
|
18
|
104
|
|
33
|
|
|
439
|
my $self = bless {}, ref $class || $class; |
19
|
104
|
|
|
|
|
180
|
while (my ($k,$v) = each %{$attrs}) { |
|
187
|
|
|
|
|
613
|
|
20
|
|
|
|
|
|
|
|
21
|
83
|
|
|
|
|
209
|
my ($p,$n) = ($v->{NamespaceURI},$v->{LocalName}); |
22
|
83
|
|
|
|
|
447
|
$self->{$p.$n} = $v->{Value}; |
23
|
|
|
|
|
|
|
} |
24
|
104
|
|
|
|
|
260
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |