N
noone
Hi,
I wrote the following perl script test.pl which generates another perl
script:
binmode(STDOUT);
print "binmode(STDOUT);print \'\r\n\';"
When I run the generated perl script, it only prints the \n:
$ perl test.pl | perl - | hexdump -c
0000000 \n
0000001
Is it a bug or a feature? How to avoid it?
I use perl v5.8.0 built for i386-linux-thread-multi.
Thanks,
David.
I wrote the following perl script test.pl which generates another perl
script:
binmode(STDOUT);
print "binmode(STDOUT);print \'\r\n\';"
When I run the generated perl script, it only prints the \n:
$ perl test.pl | perl - | hexdump -c
0000000 \n
0000001
Is it a bug or a feature? How to avoid it?
I use perl v5.8.0 built for i386-linux-thread-multi.
Thanks,
David.