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


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

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?

Replies are listed 'Best First'.
Re^2: One-liner only checking the first line of the input file
by TJCooper (Beadle) on Nov 11, 2015 at 14:44 UTC

    Including -w produces the same result.

    I've uploaded a small sample of my .txt file here:

    https://www.dropbox.com/s/jelbmyf7nzn3n70/READS.txt?dl=0

      Thanks for that. I don't use dropbox so have no concept of how (or not) they might have munged that. Instead, here are some hashes of my input.txt which works:

      • SHA256: e49d0b5631cfdf9de7bc4571716e368c5fbfb394d9f224caa7c63c7608c55b77
      • SHA1: 343eca42bb1e78dbf69eb3c2736afb65ab680dce
      • MD5: afe5fb04f8d6edcf57a04eb3ced196ef

      Compare one of those with the hash of your source and see if/how it differs. I'm using unix EOLs and am including the blank line in the middle.