On Mon, 4 Mar 2002 10:37:54 +0100, Beat Pfister wrote:

>I tried to edit postscript files with perl, but no I reconiced that perl
>changes the line ending charackters even if I only open the file and save it
>in a new file. Every "\n" is changed to an "\r", with this changes the
>postscript file can no logner be interpreted by a printer.

That's strange. Is this the newest 5.6.x port? Because I'm pretty sure
the old MacPerl didn't behave this way. *Pretty* sure.

Anyway, on any platform: binmode() is the solution to this kind of
problem. Apply it to both input and output file handle. This makes the
OS not alter the read or written data in any way.

-- 
        Bart.

Reply via email to