Oops sorry too fast, it's
print $hash{fruit}[0]
Since you constructed a hash of arrays
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Using an element in a Hash of Arrays to access the key
by LanX
in thread Using an element in a Hash of Arrays to access the key
by orangepeel1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |