Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Long list is long

by eyepopslikeamosquito (Archbishop)
on Oct 30, 2022 at 05:44 UTC ( [id://11147828]=note: print w/replies, xml ) Need Help??


in reply to Re: Long list is long
in thread Long list is long

This line:

/^(.*)\t(.*)$/ && $f{ $1 } += $2;
won't compile ("Can't modify logical and (&&) in addition (+)"). Of course, it should read:
/^(.*)\t(.*)$/ and $f{ $1 } += $2;
Apart from that, I believe your code is correct -- and a big improvement on the OP's original code (which I couldn't look at without putting on sunglasses ;-).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-19 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found