http://qs321.pair.com?node_id=1147466


in reply to One-liner only checking the first line of the input file

Since your code and data seem to be working under Unix, are you perhaps working under Windows (or old Mac) with a file prepared with an Unix format?

Under which OS are your working?