Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 ( #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 having an uproarious good time at the Monastery: (6)
As of 2015-07-07 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls