http://qs1969.pair.com?node_id=484925


in reply to Arrays & Hashes

Certainly, make the hash values be references to arrays. We call that a HoA.

my %hoa = ( alpha => ['A' .. 'Z','a' .. 'z'], numeric => [0 .. 9], );
You can get at the array elements with multiple indexing: my $char = $hoa{'alpha'}[42]; See perldsc and perllol for more on perl's deeper data structures.

After Compline,
Zaxo