Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my script runs on win32 to process formatted text files that came originally from the mac
before trying to edit them i used the following snipppet to change the default record separator to \r and look at what i got
sorts out the line endings fine but my output has lots of strange squares in it{ local $/; $/="\r"; open INFILE, $ARGV[0]; open OUTFILE, ">$ARGV[1]"; while(<INFILE>){ chomp; print OUTFILE "$_\n"; } }
Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: text files from mac
by polettix (Vicar) on Apr 13, 2005 at 12:00 UTC | |
|
Re: text files from mac
by sh1tn (Priest) on Apr 13, 2005 at 10:52 UTC | |
|
Re: text files from mac
by ryantate (Friar) on Apr 13, 2005 at 20:25 UTC | |
by Anonymous Monk on Apr 20, 2005 at 12:55 UTC |