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