Hanson, Rob [EMAIL PROTECTED] wrote: > If you want the same line endings under *nix and Windows you could > explicitly state the line ending: > > my $NL = "\x0A"; # ascii 10 in hex > print "The end is near$NL"; > > \n will use the system default.
Not true. On a Win32 system, the above will priduce output ending in CR-LF (\x0a\x0d) just like "\n". Verification: C:\>perl -e "print qq(\n)" | od -tx1 0000000 0d 0a 0000002 C:\>perl -e "print qq(\x0a)" | od -tx1 0000000 0d 0a 0000002 You could turn on "binmode STDOUT" to get just a LF (\x0a): C:\>perl -e "binmode STDOUT; print qq(\x0a)" | od -tx1 0000000 0a 0000001 -- Mike Arms _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs