Re: capturing output from running process crashes gtk2
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: gtk-perl-list gnome org
- Subject: Re: capturing output from running process crashes gtk2
- Date: Thu, 3 Aug 2006 11:12:31 +0200
* 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]