|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Formatting dynamic method namesby AnomalousMonk (Prior) |
| on Oct 10, 2009 at 20:15 UTC ( #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
|
|
||||||||||||||||||||||