On Monday, Nov 25, 2002, at 01:05 Asia/Tokyo, Chris Nandor wrote:
The bottom line was that it'd be nice to have a PerlIO filter for perlOne good question may be how to handle newlines in heretext, the only part that really matters because that's the only exception to the fact that newlines are nothing but whitespace from perl compiler's point of view -- oops, shebang is another. When you feed MacPerl *.pl to MacOS X, should linefeeds in heretext emit \015 or \012?
5.8.x, so that MacPerl can execute Unix and Windows text files, and Mac OS X
perl can execute Mac OS text files, etc. Patches are surely welcome! :-)
I am not sure which is lazier to simply apply
# Any -> Unix
perl -i.bak -ple 's/\015\012|\015|012/\012/g' *.pl
# Any -> Mac
perl -i.bak -ple 's/\015\012|\015|012/\015/g' *.pl
or teach camel the same trick....
Dan the Man with Too Many Kinds of Line Endings to Deal With