in reply to capturing stdout from a piped open

This works:
open *STDOUT, ">", $ogg_out or die $!; ... close *STDOUT;


Igor S. Lopes - izut
surrender to perl. your code, your rules.

Replies are listed 'Best First'.
Re^2: capturing stdout from a piped open
by zentara (Cardinal) on Aug 30, 2005 at 14:01 UTC
    I get errors when I try it. When I do
    close STDOUT; my $ogg_out; open *STDOUT, ">", \$ogg_out or die $!;
    It starts to run, but quickly fails with
    Failed writing data to output stream Broken pipe

    I'm not really a human, but I play one on earth. flash japh