in reply to accessing hash of arrays
#!/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"; } [download]