in reply to accessing hash of arrays
$ perl -le' my %hash = ( 4 => [ 10, "mango" ], 2 => [ 04, "banana" ], 3 => [ 20, " +apple" ] ); for my $array ( values %hash ) { print $array->[ 0 ]; } ' 10 20 4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: accessing hash of arrays
by Anonymous Monk on Aug 21, 2009 at 07:39 UTC | |
by rovf (Priest) on Aug 21, 2009 at 08:20 UTC |