go ahead... be a heretic | |
PerlMonks |
Re^2: Multidimensional Hash implementation/usageby salva (Canon) |
on Sep 17, 2007 at 08:44 UTC ( [id://639357]=note: print w/replies, xml ) | Need Help?? |
The second possibility is to use a separator to join the indexes. Be sure that the separator doesn't occur in the indexes:
Actually, Perl offers some syntactic sugar just for that: $foo{$a, $b, $c} is equivalent to $foo{join($;, $a, $b, $c)} It is documented in perlvar.
In Section
Seekers of Perl Wisdom
|
|