Shared/Array.pm

filter: Statementstmt 30.8% 67 / 217 Branchbran 6.6% 6 / 90 Conditioncond 3.5% 1 / 28 MC/DCmcdc 0.0% 0 / 16 Subroutinesub 23.9% 11 / 46 Podpod 100% 22 / 22 totaltotal 25.5% 107 / 419 CC 57 SCAR 34.3
CC
57
Cov
22%
sort
132.0
range
90.0
keys
42.0
CRAP 30.8
« Shared/Condvar.pm ↑ Summary Shared/Hash.pm »
1 ###############################################################################
2 ## ----------------------------------------------------------------------------
3 ## Array helper class.
4 ##
5 ###############################################################################
6  
7 package MCE::Shared::Array;
8  
9 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 7 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 7 ▶no warnings qw( threads recursion uninitialized numeric );
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 7 our $VERSION = '1.894';
17  
18 ## no critic (TestingAndDebugging::ProhibitNoStrict)
19  
20 7 ▶use MCE::Shared::Base ();
Subroutine BEGIN: called CC=1 SCAR=0.0
21 7 ▶use base 'MCE::Shared::Common';
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 7 ▶use overload (
Subroutine BEGIN: called CC=1 SCAR=0.0
24 7 q("") => \&MCE::Shared::Base::_stringify,
25 q(0+) => \&MCE::Shared::Base::_numify,
26 fallback => 1
27 7 );
28  
29 ###############################################################################
30 ## ----------------------------------------------------------------------------
31 ## Based on Tie::StdArray from Tie::Array.
32 ##
33 ###############################################################################
34  
35 0 ▶sub TIEARRAY {
Subroutine TIEARRAY: not called CC=2 SCAR=17.9
36 0 my $self = bless [], shift;
37 0 ▶ @{ $self } = @_ if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
38  
39 0 $self;
40 }
41  
42 0 ▶sub EXTEND { }
Subroutine EXTEND: not called CC=1 SCAR=0.0
43  
44 0 ▶sub FETCHSIZE { scalar @{ $_[0] } }
Subroutine FETCHSIZE: not called CC=1 SCAR=6.9
45 0 ▶sub STORESIZE { $#{ $_[0] } = $_[1] - 1 }
Subroutine STORESIZE: not called CC=1 SCAR=6.9
46  
47 0 ▶sub STORE { $_[0]->[ $_[1] ] = $_[2] }
Subroutine STORE: not called CC=1 SCAR=6.9
48 0 ▶sub FETCH { $_[0]->[ $_[1] ] }
Subroutine FETCH: not called CC=1 SCAR=6.9
49 0 ▶sub DELETE { delete $_[0]->[ $_[1] ] }
Subroutine DELETE: not called CC=1 SCAR=6.9
50 0 ▶sub EXISTS { exists $_[0]->[ $_[1] ] }
Subroutine EXISTS: not called CC=1 SCAR=6.9
51 0 ▶sub CLEAR { @{ $_[0] } = () }
Subroutine CLEAR: not called CC=1 SCAR=6.9
52 0 ▶sub POP { pop @{ $_[0] } }
Subroutine POP: not called CC=1 SCAR=6.9
53 0 ▶sub PUSH { my $ob = shift; push @{ $ob }, @_ }
Subroutine PUSH: not called CC=1 SCAR=6.9
54 0 ▶sub SHIFT { shift @{ $_[0] } }
Subroutine SHIFT: not called CC=1 SCAR=6.9
55 0 ▶sub UNSHIFT { my $ob = shift; unshift @{ $ob }, @_ }
Subroutine UNSHIFT: not called CC=1 SCAR=6.9
56  
57 # SPLICE ( offset [, length [, list ] ] )
58  
59 0 ▶sub SPLICE {
Subroutine SPLICE: not called CC=4 SCAR=30.0
60 0 my $ob = shift;
61 0 my $sz = $ob->FETCHSIZE;
62 0 ▶ my $off = @_ ? shift : 0;
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
63 0 ▶ $off += $sz if $off < 0;
Branch: 1 branch
BranchTrueFalseTotal
if $off < 0 0 0 0
64 0 ▶ my $len = @_ ? shift : $sz-$off;
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
65  
66 0 splice @{ $ob }, $off, $len, @_;
67 }
68  
69 ###############################################################################
70 ## ----------------------------------------------------------------------------
71 ## _find, clone, flush, iterator, keys, pairs, values
72 ##
73 ###############################################################################
74  
75 # _find ( { getkeys => 1 }, "query string" )
76 # _find ( { getvals => 1 }, "query string" )
77 # _find ( "query string" ) # pairs
78  
79 0 ▶sub _find {
Subroutine _find: not called CC=2 SCAR=17.9
80 0 my $self = shift;
81 0 ▶ my $params = ref($_[0]) eq 'HASH' ? shift : {};
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] eq 'HASH' ? : 0 0 0
82 0 my $query = shift;
83  
84 0 MCE::Shared::Base::_find_array( $self, $params, $query );
85 }
86  
87 # clone ( key [, key, ... ] )
88 # clone ( )
89  
90 0 ▶sub clone {
Subroutine clone: not called CC=4 SCAR=30.0
Pod documented
91 0 my $self = shift;
92 0 ▶ my $params = ref($_[0]) eq 'HASH' ? shift : {};
Branch: 1 branch
BranchTrueFalseTotal
ref $_[0] eq 'HASH' ? : 0 0 0
93 0 ▶ my @data = ( @_ ) ? @{ $self }[ @_ ] : @{ $self };
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
94  
95 0 ▶ $self->clear() if $params->{'flush'};
Branch: 1 branch
BranchTrueFalseTotal
if $params->{"flush"} 0 0 0
96  
97 0 bless \@data, ref $self;
98 }
99  
100 # flush ( key [, key, ... ] )
101 # flush ( )
102  
103 0 ▶sub flush {
Subroutine flush: not called CC=1 SCAR=6.9
Pod documented
104 0 shift()->clone( { flush => 1 }, @_ );
105 }
106  
107 # iterator ( key [, key, ... ] )
108 # iterator ( "query string" )
109 # iterator ( )
110  
111 2 ▶sub iterator {
Subroutine iterator: called CC=4 SCAR=16.0
Pod documented
112 2 my ( $self, @keys ) = @_;
113  
114 2 ▶ if ( ! @keys ) {
Branch: 2 branches
BranchTrueFalseTotal
if (not @keys) { } 2 0 2
elsif (@keys == 1 and $keys[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/) { } 0 0 0
115 2 @keys = ( 0 .. $#{ $self } );
116 }
117 ▶ elsif ( @keys == 1 && $keys[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/ ) {
Condition0%0/3
@keys == 1 and $keys[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
!ll&&!rl&&r
000
MC/DC0%0/2
@keys == 1 and $keys[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
@keys == 1 $keys[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
Truth table0%0/3
A and B
A= @keys == 1B= $keys[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
ABresult
0X0
100
111
118 0 @keys = $self->keys($keys[0]);
119 }
120  
121 6 ▶ return sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
122 6 ▶ return unless @keys;
Branch: 1 branch
BranchTrueFalseTotal
unless @keys 2 4 6
123 4 my $key = shift @keys;
124 4 return ( $key => $self->[ $key ] );
125 2 };
126 }
127  
128 # keys ( key [, key, ... ] )
129 # keys ( "query string" )
130 # keys ( )
131  
132 0 ▶sub keys {
Subroutine keys: not called CC=6 SCAR=37.4
Pod documented
133 0 my $self = shift;
134  
135 0 ▶ if ( @_ == 1 && $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/ ) {
Branch: 2 branches
BranchTrueFalseTotal
if (@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/) { } 0 0 0
elsif (wantarray) { } 0 0 0
Condition0%0/3
@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
!ll&&!rl&&r
000
MC/DC0%0/2
@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
@_ == 1 $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
Truth table0%0/3
A and B
A= @_ == 1B= $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
ABresult
0X0
100
111
136 0 $self->_find({ getkeys => 1 }, @_);
137 }
138 elsif ( wantarray ) {
139 0 ▶ @_ ? map { exists $self->[ $_ ] ? $_ : undef } @_
Branch: 1 branch
BranchTrueFalseTotal
exists $self->[$_] ? : 0 0 0
140 0 ▶ : ( 0 .. $#{ $self } );
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
141 }
142 else {
143 0 scalar @{ $self };
144 }
145 }
146  
147 # pairs ( key [, key, ... ] )
148 # pairs ( "query string" )
149 # pairs ( )
150  
151 3 ▶sub pairs {
Subroutine pairs: called CC=5 SCAR=20.9
Pod documented
152 3 my $self = shift;
153  
154 3 ▶ if ( @_ == 1 && $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/ ) {
Branch: 2 branches
BranchTrueFalseTotal
if (@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/) { } 0 3 3
elsif (wantarray) { } 3 0 3
Condition33%1/3
@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
!ll&&!rl&&r
300
MC/DC0%0/2
@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
@_ == 1 $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
Truth table33%1/3
A and B
A= @_ == 1B= $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
ABresult
0X0
100
111
155 0 $self->_find(@_);
156 }
157 elsif ( wantarray ) {
158 0 @_ ? map { $_ => $self->[ $_ ] } @_
159 3 ▶ : map { $_ => $self->[ $_ ] } 0 .. $#{ $self };
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 3 3
160 }
161 else {
162 0 scalar @{ $self };
163 }
164 }
165  
166 # values ( key [, key, ... ] )
167 # values ( "query string" )
168 # values ( )
169  
170 0 ▶sub values {
Subroutine values: not called CC=5 SCAR=34.0
Pod documented
171 0 my $self = shift;
172  
173 0 ▶ if ( @_ == 1 && $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/ ) {
Branch: 2 branches
BranchTrueFalseTotal
if (@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/) { } 0 0 0
elsif (wantarray) { } 0 0 0
Condition0%0/3
@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
!ll&&!rl&&r
000
MC/DC0%0/2
@_ == 1 and $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
@_ == 1 $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
Truth table0%0/3
A and B
A= @_ == 1B= $_[0] =~ /^(?:key|val)[ ]+\S\S?[ ]+\S/
ABresult
0X0
100
111
174 0 $self->_find({ getvals => 1 }, @_);
175 }
176 elsif ( wantarray ) {
177 0 @_ ? @{ $self }[ @_ ]
178 0 ▶ : @{ $self }
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
179 }
180 else {
181 0 scalar @{ $self };
182 }
183 }
184  
185 ###############################################################################
186 ## ----------------------------------------------------------------------------
187 ## assign, mdel, mexists, mget, mset, range, sort
188 ##
189 ###############################################################################
190  
191 # assign ( value [, value, ... ] )
192  
193 0 ▶sub assign {
Subroutine assign: not called CC=1 SCAR=6.9
Pod documented
194 0 $_[0]->clear; shift()->push(@_);
195 }
196  
197 # mdel ( index [, index, ... ] )
198  
199 0 ▶sub mdel {
Subroutine mdel: not called CC=3 SCAR=24.8
Pod documented
200 0 my $self = shift;
201 0 my ( $cnt, $key ) = ( 0 );
202  
203 0 ▶ while ( @_ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
204 0 $key = shift;
205 0 ▶ $cnt++, delete($self->[ $key ]) if ( exists $self->[ $key ] );
Branch: 1 branch
BranchTrueFalseTotal
if exists $self->[$key] 0 0 0
206 }
207  
208 0 $cnt;
209 }
210  
211 # mexists ( index [, index, ... ] )
212  
213 0 ▶sub mexists {
Subroutine mexists: not called CC=3 SCAR=24.8
Pod documented
214 0 my $self = shift;
215 0 my $key;
216  
217 0 ▶ while ( @_ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
218 0 $key = shift;
219 0 ▶ return '' unless ( exists $self->[ $key ] );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $self->[$key] 0 0 0
220 }
221  
222 0 1;
223 }
224  
225 # mget ( index [, index, ... ] )
226  
227 0 ▶sub mget {
Subroutine mget: not called CC=2 SCAR=17.9
Pod documented
228 0 my $self = shift;
229  
230 0 ▶ @_ ? @{ $self }[ @_ ] : ();
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
231 }
232  
233 # mset ( index, value [, index, value, ... ] )
234  
235 0 ▶sub mset {
Subroutine mset: not called CC=3 SCAR=24.8
Pod documented
236 0 my ( $self, $key ) = ( shift );
237  
238 0 ▶ while ( @_ ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
239 0 $key = shift, $self->[ $key ] = shift;
240 }
241  
242 0 ▶ defined wantarray ? scalar @{ $self } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined wantarray ? : 0 0 0
243 }
244  
245 # range ( start, stop )
246  
247 0 ▶sub range {
Subroutine range: not called CC=9 SCAR=45.0
Pod documented
248 0 my ( $self, $start, $stop ) = @_;
249  
250 0 ▶ if ( $start !~ /^\-?\d+$/ || $stop !~ /^\-?\d+$/ || $start > $#{ $self } ) {
Branch: 1 branch
BranchTrueFalseTotal
if (not $start =~ /^\-?\d+$/ && $stop =~ /^\-?\d+$/ or $start > $#{$self;}) 0 0 0
Condition0%0/6
not $start =~ /^\-?\d+$/ && $stop =~ /^\-?\d+$/ or $start > $#{$self;}
l!l&&r!l&&!r
000
$start =~ /^\-?\d+$/ && $stop =~ /^\-?\d+$/
!ll&&!rl&&r
000
MC/DC0%0/3
not $start =~ /^\-?\d+$/ && $stop =~ /^\-?\d+$/ or $start > $#{$self;}
$start =~ /^\-?\d+$/ $stop =~ /^\-?\d+$/ $start > $#{$self;}
Truth table0%0/4
not(A && B) or C
A= $start =~ /^\-?\d+$/B= $stop =~ /^\-?\d+$/C= $start > $#{$self;}
ABCresult
0XX1
10X1
1111
1100
251 0 return ();
252 }
253  
254 0 ▶ if ( $start < 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($start < 0) 0 0 0
255 0 $start = @{ $self } + $start;
256 0 ▶ $start = 0 if $start < 0;
Branch: 1 branch
BranchTrueFalseTotal
if $start < 0 0 0 0
257 }
258  
259 0 ▶ if ( $stop < 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($stop < 0) { } 0 0 0
260 0 $stop = @{ $self } + $stop;
261 0 ▶ $stop = 0 if $stop < 0;
Branch: 1 branch
BranchTrueFalseTotal
if $stop < 0 0 0 0
262 }
263 else {
264 0 ▶ $stop = $#{ $self } if $stop > $#{ $self };
Branch: 1 branch
BranchTrueFalseTotal
if $stop > $#{$self;} 0 0 0
265 }
266  
267 0 @{ $self }[ $start .. $stop ];
268 }
269  
270 # sort ( "BY val [ ASC | DESC ] [ ALPHA ]" )
271 # sort ( "[ ASC | DESC ] [ ALPHA ]" ) # same as "BY val ..."
272  
273 0 ▶sub sort {
Subroutine sort: not called CC=11 SCAR=48.8
Pod documented
274 0 my ( $self, $request ) = @_;
275 0 my ( $alpha, $desc ) = ( 0, 0 );
276  
277 0 ▶ if ( length $request ) {
Branch: 1 branch
BranchTrueFalseTotal
if (length $request) 0 0 0
278 0 ▶ $alpha = 1 if ( $request =~ /\balpha\b/i );
Branch: 1 branch
BranchTrueFalseTotal
if $request =~ /\balpha\b/i 0 0 0
279 0 ▶ $desc = 1 if ( $request =~ /\bdesc\b/i );
Branch: 1 branch
BranchTrueFalseTotal
if $request =~ /\bdesc\b/i 0 0 0
280 }
281  
282 # Return sorted values, leaving the data intact.
283  
284 0 ▶ if ( defined wantarray ) {
Branch: 2 branches
BranchTrueFalseTotal
if (defined wantarray) { } 0 0 0
elsif ($alpha) { } 0 0 0
285 0 ▶ if ( $alpha ) { ( $desc )
Branch: 1 branch
BranchTrueFalseTotal
if ($alpha) { } 0 0 0
286 0 ? CORE::sort { $b cmp $a } @{ $self }
287 0 ▶ : CORE::sort { $a cmp $b } @{ $self };
Branch: 1 branch
BranchTrueFalseTotal
$desc ? : 0 0 0
288 }
289 else { ( $desc )
290 0 ? CORE::sort { $b <=> $a } @{ $self }
291 0 ▶ : CORE::sort { $a <=> $b } @{ $self };
Branch: 1 branch
BranchTrueFalseTotal
$desc ? : 0 0 0
292 }
293 }
294  
295 # Sort values in-place otherwise, in void context.
296  
297 elsif ( $alpha ) { ( $desc )
298 0 ? do { @{ $self } = CORE::sort { $b cmp $a } @{ $self } }
299 0 ▶ : do { @{ $self } = CORE::sort { $a cmp $b } @{ $self } };
Branch: 1 branch
BranchTrueFalseTotal
$desc ? : 0 0 0
300 }
301 else { ( $desc )
302 0 ? do { @{ $self } = CORE::sort { $b <=> $a } @{ $self } }
303 0 ▶ : do { @{ $self } = CORE::sort { $a <=> $b } @{ $self } };
Branch: 1 branch
BranchTrueFalseTotal
$desc ? : 0 0 0
304 }
305 }
306  
307 ###############################################################################
308 ## ----------------------------------------------------------------------------
309 ## Sugar API, mostly resembles https://redis.io/commands#string primitives.
310 ##
311 ###############################################################################
312  
313 # append ( index, string )
314  
315 0 ▶sub append {
Subroutine append: not called CC=2 SCAR=17.9
Pod documented
316 0 ▶ length( $_[0]->[ $_[1] ] .= $_[2] // '' );
Condition0%0/2
$_[2] // ""
l!l
00
MC/DC0%0/1
$_[2] // ""
$_[2]
Truth table0%0/2
A
A= $_[2]
Aresult
11
00
317 }
318  
319 # decr ( index )
320 # decrby ( index, number )
321 # incr ( index )
322 # incrby ( index, number )
323 # getdecr ( index )
324 # getincr ( index )
325  
326 0 ▶sub decr { --$_[0]->[ $_[1] ] }
Subroutine decr: not called CC=1 SCAR=6.9
Pod documented
327 0 ▶sub decrby { $_[0]->[ $_[1] ] -= $_[2] || 0 }
Subroutine decrby: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
$_[2] || 0
l!l
00
MC/DC0%0/1
$_[2] || 0
$_[2]
Truth table0%0/2
A
A= $_[2]
Aresult
11
00
328 0 ▶sub incr { ++$_[0]->[ $_[1] ] }
Subroutine incr: not called CC=1 SCAR=6.9
Pod documented
329 0 ▶sub incrby { $_[0]->[ $_[1] ] += $_[2] || 0 }
Subroutine incrby: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
$_[2] || 0
l!l
00
MC/DC0%0/1
$_[2] || 0
$_[2]
Truth table0%0/2
A
A= $_[2]
Aresult
11
00
330 0 ▶sub getdecr { $_[0]->[ $_[1] ]-- // 0 }
Subroutine getdecr: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
$_[0][$_[1]]-- // 0
l!l
00
MC/DC0%0/1
$_[0][$_[1]]-- // 0
$_[0][$_[1]]--
Truth table0%0/2
A
A= $_[0][$_[1]]--
Aresult
11
00
331 0 ▶sub getincr { $_[0]->[ $_[1] ]++ // 0 }
Subroutine getincr: not called CC=2 SCAR=17.9
Pod documented
Condition0%0/2
$_[0][$_[1]]++ // 0
l!l
00
MC/DC0%0/1
$_[0][$_[1]]++ // 0
$_[0][$_[1]]++
Truth table0%0/2
A
A= $_[0][$_[1]]++
Aresult
11
00
332  
333 # getset ( index, value )
334  
335 0 ▶sub getset {
Subroutine getset: not called CC=1 SCAR=6.9
Pod documented
336 0 my $old = $_[0]->[ $_[1] ];
337 0 $_[0]->[ $_[1] ] = $_[2];
338  
339 0 $old;
340 }
341  
342 # len ( index )
343 # len ( )
344  
345 0 ▶sub len {
Subroutine len: not called CC=2 SCAR=17.9
Pod documented
346 ( defined $_[1] )
347 ? length $_[0]->[ $_[1] ]
348 0 ▶ : scalar @{ $_[0] };
Branch: 1 branch
BranchTrueFalseTotal
defined $_[1] ? : 0 0 0
349 }
350  
351 {
352 7 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
353  
354 7 *{ __PACKAGE__.'::new' } = \&TIEARRAY;
355 7 *{ __PACKAGE__.'::set' } = \&STORE;
356 7 *{ __PACKAGE__.'::get' } = \&FETCH;
357 7 *{ __PACKAGE__.'::delete' } = \&DELETE;
358 7 *{ __PACKAGE__.'::exists' } = \&EXISTS;
359 7 *{ __PACKAGE__.'::clear' } = \&CLEAR;
360 7 *{ __PACKAGE__.'::pop' } = \&POP;
361 7 *{ __PACKAGE__.'::push' } = \&PUSH;
362 7 *{ __PACKAGE__.'::shift' } = \&SHIFT;
363 7 *{ __PACKAGE__.'::unshift' } = \&UNSHIFT;
364 7 *{ __PACKAGE__.'::splice' } = \&SPLICE;
365 7 *{ __PACKAGE__.'::del' } = \&delete;
366 7 *{ __PACKAGE__.'::merge' } = \&mset;
367 7 *{ __PACKAGE__.'::vals' } = \&values;
368 }
369  
370 7 1;
371  
372 __END__
« Shared/Condvar.pm ↑ Summary Shared/Hash.pm »