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


in reply to Re^3: dos2ux shows cannot open file if it is greater than 2GB size
in thread dos2ux shows cannot open file if it is greater than 2GB size

You can actually optimize the regular expression using a string termination anchor: s/\r$// That keeps it from having to check the entire string.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

  • Comment on Re^4: dos2ux shows cannot open file if it is greater than 2GB size
  • Download Code