#!/usr/bin/perl use strict; my %hash = ( 4 => [10, "mango"] , 2 => [04, "banana"] , 3 => [20, "apple"], ); for my $i ( keys %hash ) { print "$i: $hash{$i}->[0]\n"; }
In reply to Re: accessing hash of arrays
by bichonfrise74
in thread accessing hash of arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |