Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Count values in a hash

by rir (Vicar)
on Jan 11, 2011 at 18:29 UTC ( #881726=note: print w/ replies, xml ) Need Help??


in reply to Count values in a hash

Your line

my ($key, @val) = split /\t/, $line, 2;
is erroneous; it is creating an array with one string value containing all of $line after the first tab.

Be well,
rir


Comment on Re: Count values in a hash
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-12-26 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls