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

Re: Counting how many times item is occurring and adding the total from array help!

by toolic (Bishop)
on Sep 14, 2012 at 18:19 UTC ( [id://993773]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found