in reply to Counting how many times item is occurring and adding the total from array help!

I get a compile error. I added a "}" before your last print. Is that where it should go?

I get a warning message with warnings enabled. Try to clean that up.

if($flds[2] eq $flds[2]){
Comparing something to itself is probably not what you meant.
  • Comment on Re: Counting how many times item is occurring and adding the total from array help!
  • Download Code

Replies are listed 'Best First'.
Re^2: Counting how many times item is occurring and adding the total from array help!
by Anonymous Monk on Sep 14, 2012 at 19:23 UTC
    Missed the "}",sorry. Thats where one of my issue is, how to add the values if the account on position 2 are equal.