This line:
won't compile ("Can't modify logical and (&&) in addition (+)"). Of course, it should read:/^(.*)\t(.*)$/ && $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 ;-)./^(.*)\t(.*)$/ and $f{ $1 } += $2;
In reply to Re^2: Long list is long
by eyepopslikeamosquito
in thread Long list is long
by Chuma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |