in reply to accessing hash of arrays
If this is indeed the structure you can access 10,04, ... as follows:%hash = ( 4 => \( 4, 'mango' ) ... )
If you can tell us how you initialized your Hash, maybe things could be clearer.@{ $hash[4] }[0] will give 10 @{ $hash[4] }[1] will give Mango @{ $hash[2] }[0] will give 04 @{ $hash[3] }[0] will give 20 and so on ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: accessing hash of arrays
by rovf (Priest) on Aug 21, 2009 at 07:26 UTC |