Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by toolic (Chancellor)
on Sep 14, 2012 at 18:19 UTC ( #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
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
Node Status?
node history
Node Type: note [id://993773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-07-24 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls