Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: Sorting Puzzle (just sort)

by imp (Priest)
on Feb 21, 2007 at 00:50 UTC ( #601240=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Sorting Puzzle (just sort)
in thread Sorting Puzzle

I wasn't playing favorites actually. I had asked a very similar question shortly before you, and tye had corrected my assertion that perl wasn't comparing them numerically without 0+.

His statement was technically correct that 0+ was not neccesary to force numeric comparison, as perl already did that. What 0+ accomplished was to force bigint's involvement. A minor, but valid point.

As for reasons to avoid its use I'd guess the hidden cost of the bigint magic, and less than obvious cases where that magic doesn't come into play - such as in the original question.


Comment on Re^5: Sorting Puzzle (just sort)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://601240]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-09-21 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (167 votes), past polls