Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i am using the following bit of code:
my $return = qx/$cmd/;
this works wonderfully for stdout of the system command contained in $cmd. however, i also need to cature stderr. imbedding 2>&1 into $cmd isn't working. i am aware of ipc::open3 but am not having any luck convincing him-who-installs-perl-modules to take any action.
are there any alternatives or suggestions? - d
20050224 Janitored by Corion: Added code tags, formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: qx and stderr
by Fletch (Bishop) on Feb 23, 2005 at 18:50 UTC | |
|
Re: qx and stderr
by RazorbladeBidet (Friar) on Feb 23, 2005 at 18:46 UTC | |
by Anonymous Monk on Feb 23, 2005 at 18:53 UTC | |
by RazorbladeBidet (Friar) on Feb 23, 2005 at 19:00 UTC | |
|
Re: qx and stderr
by dragonchild (Archbishop) on Feb 23, 2005 at 18:52 UTC | |
by amw1 (Friar) on Feb 23, 2005 at 21:43 UTC | |
|
Re: qx and stderr
by perlfan (Parson) on Feb 23, 2005 at 18:45 UTC |