good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: quick question about hash element accessby tilly (Archbishop) |
on Jun 27, 2003 at 21:18 UTC ( [id://269745]=note: print w/replies, xml ) | Need Help?? |
Sorry, basically you have to do it recursively or using eval. For a miniscule efficiency gain you can use tail-optimization to turn the recursion into iteration like so:
and you would call it like this: (Note: could benefit from more error checking.)
In Section
Seekers of Perl Wisdom
|
|