line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Net::BGP::ASPath::AS_SEQUENCE; |
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
52
|
use strict; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
1769
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
## Inheritance and Versioning ## |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
@Net::BGP::ASPath::AS_SEQUENCE::ISA = qw( Net::BGP::ASPath::AS ); |
10
|
|
|
|
|
|
|
our $VERSION = '0.18'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub type { |
13
|
18
|
|
|
18
|
0
|
34
|
return 2; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub length { |
17
|
69
|
|
|
69
|
0
|
113
|
my $this = shift; |
18
|
69
|
|
|
|
|
96
|
return scalar @{$this}; |
|
69
|
|
|
|
|
242
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
0
|
0
|
sub asstring { as_string(@_) } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub as_string { |
24
|
566
|
|
|
566
|
0
|
799
|
my $this = shift; |
25
|
566
|
|
|
|
|
729
|
return join(' ', @{$this}); |
|
566
|
|
|
|
|
2953
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub asarray { |
29
|
60
|
|
|
60
|
0
|
98
|
my $this = shift; |
30
|
60
|
|
|
|
|
80
|
return [ @{$this} ]; # Unblessed version of list! |
|
60
|
|
|
|
|
312
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub count { |
34
|
0
|
|
|
0
|
0
|
0
|
my $this = shift; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
0
|
return scalar(@{$this}); |
|
0
|
|
|
|
|
0
|
|
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub remove_tail { |
40
|
3
|
|
|
3
|
0
|
5
|
my ($this, $cnt) = @_; |
41
|
|
|
|
|
|
|
|
42
|
3
|
|
|
|
|
7
|
while ($cnt-- > 0) { |
43
|
3
|
|
|
|
|
6
|
pop @{$this}; |
|
3
|
|
|
|
|
8
|
|
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
3
|
|
|
|
|
6
|
return $this; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|