Think about Loose Coupling | |
PerlMonks |
Re^2: Converting a string to a real numeric value - what's faster?by isync (Hermit) |
on Sep 17, 2009 at 09:50 UTC ( [id://795835]=note: print w/replies, xml ) | Need Help?? |
Thanks! What I learn from that is: if i am handling non-floating-point values, it's a bit more elegant and possibly a tick faster (one iteration less, 1-b vs 1-c) to use int(), otherwise the +0 trick isn't that much of a hack it seems to be.
In Section
Seekers of Perl Wisdom
|
|