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
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
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.
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,
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?
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
6 matches
Mail list logo