in reply to
Easy way to capture STDOUT and STDERR without IPC
Sure. The easiest way is using backticks (`) - see
`STRING`
in
perlop
. Grabbing both STDOUT and STDERR can be done with a little redirection in the shell:
$output = `cmd 2>&1`;
Comment on
Re: Easy way to capture STDOUT and STDERR without IPC
Download
Code
In Section
Seekers of Perl Wisdom