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

Re: One-liner only checking the first line of the input file

by hippo (Bishop)
on Nov 11, 2015 at 14:39 UTC ( [id://1147456]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found