http://www.perlmonks.org?node_id=11122520


in reply to Re^4: Count the sequence length of each entry in the file
in thread Count the sequence length of each entry in the file

You're right about CRLF conversion. If I'm using perl on windows it is often via cygwin. In that case perl defaults to UNIX behaviour.

The poster didn't provide much in the way of detail, but embedded CRLF might explain the difference of 4. It's hard to tell the details.

I wasn't aware of chomp's behaviour. I seldom use paragraph mode. Thanks for that detail.

  • Comment on Re^5: Count the sequence length of each entry in the file