in reply to Re^11: Why does each() always re-evaluate its argument? ("for_list" )
in thread Why does each() always re-evaluate its argument?

Even if caching the whole list is faster than iterating step by step, it'll be slower if a big loop is left early.°

The question is how long that list has to be.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

°) like with last

  • Comment on Re^12: Why does each() always re-evaluate its argument? ("for_list" )