in reply to accessing hash of arrays

Your hash structure does not look too clear to me.

But from what I understand it should be:
%hash = ( 4 => \( 4, 'mango' ) ... )
If this is indeed the structure you can access 10,04, ... as follows:
@{ $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 ...
If you can tell us how you initialized your Hash, maybe things could be clearer.

Replies are listed 'Best First'.
Re^2: accessing hash of arrays
by rovf (Priest) on Aug 21, 2009 at 07:26 UTC
    4 => \( 4, 'mango' )

    I guess you mean

    4 => [4, 'mango']
    ?

    -- 
    Ronald Fischer <ynnor@mm.st>