P is for Practical | |
PerlMonks |
Re: Arrays & Hashesby Zaxo (Archbishop) |
on Aug 18, 2005 at 18:51 UTC ( [id://484925]=note: print w/replies, xml ) | Need Help?? |
Certainly, make the hash values be references to arrays. We call that a HoA. 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,
In Section
Seekers of Perl Wisdom
|
|