|
|
| P is for Practical | |
| PerlMonks |
Re: Print Vs Return In a Subroutineby bart (Canon) |
| on Mar 30, 2012 at 10:40 UTC ( #962561=note: print w/ replies, xml ) | Need Help?? |
|
You're micro-optimizing. Stop it. Just make your code work, and when you think it woks too slow, benchmark the likely culprits and improve those, if necessary. With Time::HiRes you can get the current time in microseconds, so you can measure quite precisely how long a piece of code takes.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||