Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Loosing Negative Values in Array Refby Marshall (Canon) |
on Jun 03, 2009 at 23:16 UTC ( [id://768205]=note: print w/replies, xml ) | Need Help?? |
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.?
In Section
Seekers of Perl Wisdom
|
|