go ahead... be a heretic | |
PerlMonks |
Re: help with hashesby manav (Scribe) |
on Mar 15, 2005 at 12:21 UTC ( [id://439605]=note: print w/replies, xml ) | Need Help?? |
A shorter way to create loops in Perl is
The loops can also be created by using the keys function. can and should be changed to and so on for other loops. This is the preferred way of looping through all keys in the hashes. Your script can also be implemented through arrays, as you are doing numerical indexing which is faster than associative indexing. Manav
In Section
Seekers of Perl Wisdom
|
|