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.
In reply to Re^4: dos2ux shows cannot open file if it is greater than 2GB size
by kennethk
in thread dos2ux shows cannot open file if it is greater than 2GB size
by shan_emails
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |