On Mon, Dec 20, 2004 at 06:13:54PM -0800, David Wheeler wrote:
> >Test::Builder should do something like this internally, its not like 
> >anyone's
> >going to drive binary data through a TB filehandle.  The question is
> >how does one do it without breaking older perls?
> 
> If there was a way to tell what mode was on STDERR before you duped it, 
> you could just set it to the same. Something like:
> 
>   my $mode = what_binmode(STDERR);
>   my $fh = $builder->failure_output;
>   binmode $fh, $mode;
> 
> Is there a module or function in Perl that can provide this information?

Why does it matter what it was set to before?  I'm always going to be
shoving text out through this filehandle.


-- 
Michael G Schwern     [EMAIL PROTECTED]     http://www.pobox.com/~schwern/
    And God was pleased.
    And Dog was happy and wagged his tail.
    And Adam was greatly improved.
    And Cat did not care one way or the other.
        -- http://www.catsarefrommars.com/creationist.htm

Reply via email to