Monday, April 25, 2011

Perl hashes - effective way of iterating through the hashes

I came across this very useful link about iterating through the perl hashes. http://www.perlhowto.com/iterate_through_a_hash. All the while, I thought that I was doing pretty good with iterating through the perl hashes, untill I saw this link. It seems that best way to iterate is to use each and not the other paradigm listed in the link.

I am posting this, just to give myself a reminder, and also a note for the perl-programmers, who have overlooked this aspect. Time to do some code-refactoring/optimisation.

No comments:

Post a Comment