in reply to Re: Activestate open unix filehandle
in thread Activestate open unix filehandle
That's incorrect. \n is \x0A in Windows. The convertion \x0A to \x0D\x0A happens in the PerlIO layers, so your trick doesn't work. Proof:
>type !.pl my $LF = "\x0a"; print "This line ends with a linefeed" . $LF; >perl !.pl > ! >debug ! -rcx CX 0020 : -d100 l20 0B25:0100 54 68 69 73 20 6C 69 6E-65 20 65 6E 64 73 20 77 This line + ends w 0B25:0110 69 74 68 20 61 20 6C 69-6E 65 66 65 65 64 0D 0A ith a lin +efeed.. -q
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Activestate open unix filehandle
by duff (Parson) on Mar 01, 2006 at 20:59 UTC | |
by ikegami (Patriarch) on Mar 01, 2006 at 21:18 UTC |