in reply to Arrays & Hashes
No, but you can create a hash of array refs...
see perlref and perlreftut.
Here's an example:
see perlref and perlreftut.
Here's an example:
(Untested)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"; } }
In Section
Seekers of Perl Wisdom