Subject: Re: Perl binmode problem on text mount
From: "Gerrit P. Haase" <[email-masked]>
To: [email-masked]
Date: Fri, 05 Nov 2004 00:28:03 +0100

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/