line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
28
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
52
|
|
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
82
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Tie::Array::Queue; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
8
|
|
|
|
|
|
|
our $VERSION = '0.003'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
7
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
83
|
|
11
|
1
|
|
|
1
|
|
1092
|
use Tie::Array (); |
|
1
|
|
|
|
|
1327
|
|
|
1
|
|
|
|
|
138
|
|
12
|
|
|
|
|
|
|
our @ISA = qw(Tie::StdArray); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
eval qq[ |
15
|
|
|
|
|
|
|
sub $_ { croak "$_ operation not permitted on queue" } 1 |
16
|
0
|
|
|
0
|
|
0
|
] || die $@ for qw(STORE POP UNSHIFT EXISTS DELETE SPLICE); |
|
0
|
|
|
0
|
|
0
|
|
|
1
|
|
|
1
|
|
1859
|
|
|
0
|
|
|
0
|
|
0
|
|
|
1
|
|
|
1
|
|
598
|
|
|
1
|
|
|
1
|
|
646
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub FETCH |
19
|
|
|
|
|
|
|
{ |
20
|
2
|
|
|
2
|
|
1709
|
my $self = shift; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# The first item on the stack can be peeked at. |
23
|
2
|
100
|
|
|
|
6
|
if ($_[0] == 0) |
24
|
|
|
|
|
|
|
{ |
25
|
1
|
|
|
|
|
7
|
return $self->SUPER::FETCH(@_); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
|
|
99
|
croak "FETCH operation not permitted on queue"; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |