Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Loosing Negative Values in Array Ref

by Anonymous Monk
on Jun 03, 2009 at 14:35 UTC ( #768028=note: print w/ replies, xml ) Need Help??


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

Thats true, how to keep the same logic and still check having these negative values in the array?


Comment on Re^2: Loosing Negative Values in Array Ref
Re^3: Loosing Negative Values in Array Ref
by Marshall (Prior) on Jun 03, 2009 at 23:16 UTC
    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.?

Log In?
Username:
Password:

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

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

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











    Results (166 votes), past polls