in reply to qx and stderr

How are you embedding "2>&1" into $cmd? You might have to use single-quotes for that part.

I would look at IPC::Cmd as well as IPC::Open3. The former provides the STDERR/STDOUT streams as lists where the latter requires filehandles. You can install them yourself, even by just cut'n'pasting the code - they're both PurePerl modules.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Replies are listed 'Best First'.
Re^2: qx and stderr
by amw1 (Friar) on Feb 23, 2005 at 21:43 UTC