http://www.perlmonks.org?node_id=484924


in reply to Arrays & Hashes

No, but you can create a hash of array refs...

see perlref and perlreftut.

Here's an example:
my $hash_of_arrays = { array1 => [ 1, 2, 3 ], array2 => [ 'a', 'b', 'c' ] }; foreach my $key ( %$hash_of_arrays ) { print "Key: $key\n"; foreach my $array_element ( @$key ) { print "Array Element: $array_element\n"; } }
(Untested)