| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Tie::Array::Queue; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
|
4
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use Carp; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
82
|
|
|
7
|
1
|
|
|
1
|
|
1043
|
use Tie::Array (); |
|
|
1
|
|
|
|
|
1444
|
|
|
|
1
|
|
|
|
|
166
|
|
|
8
|
|
|
|
|
|
|
our @ISA = qw(Tie::StdArray); |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
eval qq[ |
|
11
|
|
|
|
|
|
|
sub $_ { croak "$_ operation not permitted on queue" } 1 |
|
12
|
0
|
|
|
0
|
|
0
|
] || die $@ for qw(STORE POP UNSHIFT EXISTS DELETE SPLICE); |
|
|
0
|
|
|
0
|
|
0
|
|
|
|
1
|
|
|
1
|
|
1742
|
|
|
|
0
|
|
|
0
|
|
0
|
|
|
|
1
|
|
|
1
|
|
613
|
|
|
|
1
|
|
|
1
|
|
686
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub FETCH |
|
15
|
|
|
|
|
|
|
{ |
|
16
|
2
|
|
|
2
|
|
1468
|
my $self = shift; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# The first item on the stack can be peeked at. |
|
19
|
2
|
100
|
|
|
|
8
|
if ($_[0] == 0) |
|
20
|
|
|
|
|
|
|
{ |
|
21
|
1
|
|
|
|
|
9
|
return $self->SUPER::FETCH(@_); |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
1
|
|
|
|
|
143
|
croak "FETCH operation not permitted on queue"; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |