Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Loosing Negative Values in Array Ref

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


in reply to Loosing Negative Values in Array Ref

I can't understand why it is happening, can someone help with that?

If you add

warn $tmp->[$i] = '0'; # Need to check for numeric or string values here:::
you'll never see any negative numbers. This means code before is problem, but what is it supposed to do?


Comment on Re: Loosing Negative Values in Array Ref
Download Code
Re^2: Loosing Negative Values in Array Ref
by Anonymous Monk on Jun 03, 2009 at 13:33 UTC
    To avoid duplicated records I am using this code to combine them, getting a unique account number (second element) and the greatest values comparing them if they are equal, if you run the code you will see it better, but how could I still display the negatives?
      getting a unique account number (second element)
      Your code my $uniq_key = $aref->[0]; is actually using the name, not the account number.

Log In?
Username:
Password:

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

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

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











    Results (176 votes), past polls