Re: Control-D Bug?

2006-02-01 Thread Edward Moy
FYI, when you type CTRL-D, the tty driver echos back 4 characters ^D\b \b (where \b is or backspace). So when perl outputs its first line, it writes 3\n (which the tty driver converts to 3\r\n), so the ^ is overwritten by the 3, leaving 3D. Edward Moy Apple On Feb 1, 2006, at 10:01 AM, Jo

Re: Control-D Bug?

2006-02-01 Thread Jonathan Levi MD
At 4:13 PM +1030 2/1/06, Paul McCann wrote: Jonathan Levi wrote: #!/usr/bin/env perl # [comments omitted] print reverse <>; drj2:learningperl4 jonathan$ p052e1.pl ... 3 3D .. I'm pretty sure that you're just seeing an artefact of executing in the terminal (ie it's a display pr

Re: Control-D Bug?

2006-02-01 Thread Paul McCann
Jonathan Levi wrote: #!/usr/bin/env perl # [comments omitted] print reverse <>; drj2:learningperl4 jonathan$ p052e1.pl 1 2 3 3D 2 1 I'm pretty sure that you're just seeing an artefact of executing in the terminal (ie it's a display problem, rather than a problem