If you don't know, I guess you'll have to resort to s/\s+$// instead of chomp. (If you don't want to remove all trailing whitespaces you have to tweak the regex, of course)
You could write your own IO layer of course which turns any crlf and lf into $/.
In reply to Re: Process file regardless of the platform it was created on
by moritz
in thread Process file regardless of the platform it was created on
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |