Igor Pechtchanski wrote:

FWIW, the following two invocations of perl from a text mount differ in
their result:

perl -e 'open OUT,">q.txt";binmode OUT;print OUT "Hello\n"'
perl -e 'binmode STDOUT;print STDOUT "Hello\n"' > q.txt

Yes, that is the interesting part, perl does all correct when writing directly to a real file, but when the the output is redirected, binmode is ignored.


Gerrit -- =^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



Reply via email to