in reply to Using an element in a Hash of Arrays to access the key
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using an element in a Hash of Arrays to access the key
by orangepeel1 (Novice) on Mar 25, 2017 at 17:21 UTC | |
by LanX (Saint) on Mar 25, 2017 at 17:24 UTC |