The stupid question is the question not asked | |
PerlMonks |
Re: Formatting dynamic method namesby AnomalousMonk (Archbishop) |
on Oct 10, 2009 at 20:15 UTC ( [id://800477]=note: print w/replies, xml ) | Need Help?? |
This benchmark code also includes the creation of a lexical scalar as well as assignment to it. The benchmark would be slightly more accurate (and slightly faster) if the lexical were defined outside the loop and used inside. (However, I doubt the speed difference would be significant.) I would agree with zwon in preferring the 'temp var' approach.
In Section
Seekers of Perl Wisdom
|
|