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, ") { 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 the CR. But it does

Re: perl reading ^M on text mounts

2006-04-21 Thread Lemke, Michael SZ/HZA-IOM1
Lemke, Michael SZ/HZA-IOM1 schaeffler.com> writes: > > If I execute this perl script > >de010597> cat x.pl >#!/usr/bin/perl >use strict; > >open( HO, "while () { print "$_"; } > > on a text mount with an input file that has C