Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Loosing Negative Values in Array Ref

by Marshall (Abbot)
on Jun 03, 2009 at 23:16 UTC ( #768205=note: print w/replies, xml ) Need Help??


in reply to Re^2: Loosing Negative Values in Array Ref
in thread Loosing Negative Values in Array Ref

Aside from the numeric vs string issue. Numeric "zero" is greater than "-5"! So maybe what you need here is to use absolute vale abs() when comparing things so that abs(-5) is > 0.?
  • Comment on Re^3: Loosing Negative Values in Array Ref

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://768205]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-11-19 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?