There's more than one way to do things | |
PerlMonks |
Re^2: hash slice ? No thanks, I'm about to return...by Tanktalus (Canon) |
on Feb 19, 2005 at 16:30 UTC ( [id://432749]=note: print w/replies, xml ) | Need Help?? |
Or just a "%return" - return is optional. Either way, make the return value explicit, rather than relying on a complex operation to do it, whether you make the fact you're returning explicit or not. (I did some benchmarks a while back which surprised me to find out that "return %hash" was actually slower than "%hash" and falling out the bottom of the function...)
In Section
Meditations
|
|