in reply to Process file regardless of the platform it was created on
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 $/.
|
|---|