http://www.perlmonks.org?node_id=768011


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

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?
  • Comment on Re^2: Loosing Negative Values in Array Ref

Replies are listed 'Best First'.
Re^3: Loosing Negative Values in Array Ref
by Thelonius (Priest) on Jun 03, 2009 at 14:17 UTC
    getting a unique account number (second element)
    Your code my $uniq_key = $aref->[0]; is actually using the name, not the account number.