Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Pushing at Array of Arrays

by sh1tn (Priest)
on Feb 25, 2005 at 00:59 UTC ( [id://434329]=note: print w/replies, xml ) Need Help??


in reply to Pushing at Array of Arrays

If this helps (index in array must be a number):
my %labels = ( '0' => [0,0,0,0,7,0,0,2], '1' => [0,0,0,0,0,0,5,4], '2' => [0,0,0,0,0,0,0,0] );


Replies are listed 'Best First'.
Re^2: Pushing at Array of Arrays
by djantzen (Priest) on Feb 25, 2005 at 01:46 UTC

    This solves one problem and creates another, namely, the attempt to look up nonexistent array indexes (1 and 2) will result in autovivication of two sibling arrays to the one in the zero place.


    "The dead do not recognize context" -- Kai, Lexx

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://434329]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-25 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found