Your code and data as given work for me. The output (on perl v5.20.3) is:
10 340 40 240
Are you sure your data set is what you think it is? Does adding -w to the options do you any good?
In reply to Re: One-liner only checking the first line of the input file
by hippo
in thread One-liner only checking the first line of the input file
by TJCooper
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |