Re: capturing output from running process crashes gtk2



* Roderich Schupp (ext) <Roderich Schupp ext BenQ com> [2006-08-03 10:25]:
Or, as a workaround, initialize $error with an IO::Handle:

use IO::Handle;
my $error = IO::handle->new;
my $pid = open3($write, $read , $error, ...);

The pre-5.6 scalar filehandle approach might work too:

    use Symbol qw( gensym );
    my $error = gensym;
    my $pid = open3($write, $read , $error, ...);

Regards,
-- 
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]