in reply to Re: Best practice for sychronous output handling using open3()?
in thread Best practice for sychronous output handling using open3()?
gensym (in Symbol) returns a ref to a new glob every time it's called.
my $cmdin=gensym; my $cmdout=gensym; my $cmderr=gensym; open3($cmdin, $cmdout, $cmderr, $cmd);
is like
my $cmdin=gensym; my $cmdout=gensym; my $cmderr=gensym; open3(\*IN, \*OUT, \*ERR, $cmd);
without the risk of conflicting names.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best practice for sychronous output handling using open3()?
by stonecolddevin (Parson) on May 11, 2006 at 03:07 UTC |