Re: perl reading ^M on text mounts

2006-05-23 Thread Yitzchak Scott-Thoennes
On Sun, Apr 23, 2006 at 12:28:52PM +, Michael Lemke wrote: Dave kilroyd at googlemail.com writes: Have you tried setting the environment variable PERLIO? I'm not a heavy PERL user, but I tend to have PERLIO=crlf if I'm likely to see CRLFs. Thanks, I tried that. It

Re: perl reading ^M on text mounts

2006-05-01 Thread Igor Peshansky
On Sun, 23 Apr 2006, Michael Lemke wrote: Dave kilroyd at googlemail.com writes: Have you tried setting the environment variable PERLIO? I'm not a heavy PERL user, but I tend to have PERLIO=crlf if I'm likely to see CRLFs. Thanks, I tried that. It indeed seems to remove the \r

Re: perl reading ^M on text mounts

2006-04-24 Thread Michael Lemke
Dave kilroyd at googlemail.com writes: Have you tried setting the environment variable PERLIO? I'm not a heavy PERL user, but I tend to have PERLIO=crlf if I'm likely to see CRLFs. Thanks, I tried that. It indeed seems to remove the \r but independent of the mount mode of the disk.

Re: perl reading ^M on text mounts

2006-04-21 Thread Lemke, Michael SZ/HZA-IOM1
Considering the usual speed of answers in this group and the persistent silence on this one may I ask again? Perl doesn't seem to deal well with CRLF text files as demonstrated below. Is that a known problem, any fix coming or am I missing something? Thanks for any insight, Michael Lemke,

Re: perl reading ^M on text mounts

2006-04-21 Thread Dave
Have you tried setting the environment variable PERLIO? I'm not a heavy PERL user, but I tend to have PERLIO=crlf if I'm likely to see CRLFs. Dave. Lemke, Michael SZ/HZA-IOM1 wrote: Considering the usual speed of answers in this group and the persistent silence on this one may I ask again?

perl reading ^M on text mounts

2006-04-12 Thread Lemke, Michael SZ/HZA-IOM1
If I execute this perl script de010597 cat x.pl #!/usr/bin/perl use strict; open( HO, x.txt ); while (HO) { print $_; } on a text mount with an input file that has CRLF line endings perl should treat this as a text file and strip the CR. Only if I use binmode HO should I see