more useful options | |
PerlMonks |
Re: Scoping of my with foreach loopby cog (Parson) |
on Mar 07, 2005 at 19:50 UTC ( [id://437298]=note: print w/replies, xml ) | Need Help?? |
Also, the first version tends to be faster, because the second one has to declare a new variable for each element of @array (unless this has been optimized by now).
Benchmark it with a big array.
In Section
Seekers of Perl Wisdom
|
|