Perl binmode problem on text mount

Gerrit P. Haase gp@familiehaase.de
Thu Nov 4 23:28:00 GMT 2004


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/



More information about the Cygwin mailing list