[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Re: [MacPerl/Unix Perl] Fixing newlines, in one line!



While browsing this year's Obfuscated Perl contest I found an entry that 
might be of interest to other MacPerl programmers:

#!/bin/perl -w012l15pi.bak

Save that one line as a droplet. It will take a text file and change the 
newlines from Mac format to Unix format.

#!/bin/perl -w015l12pi.bak

will do the opposite operation, Unix format to Mac format.

I'm afraid I've forgotten the originator's name, but this sure works nice.