ActiveState Community

Win32 ActivePerl always prints CR LF

Posted by systom on 2009-08-03 13:15

Hello,

If I

print FILE "\n";

the file contains:

0000000: 0d0a

If I

print FILE "\x0A";

the file contains:

0000000: 0d0a

Is there no way to fool it into printing a UNIX compatible file? Most applications don't care these days but I have a legacy app that does.

Thanks, systom

systom | Mon, 2009-08-03 18:50

Found 'binmode' - fixes the problem.