go ahead... be a heretic | |
PerlMonks |
Re^2: Problems with open3by RonW (Parson) |
on Oct 15, 2014 at 17:01 UTC ( [id://1103937]=note: print w/replies, xml ) | Need Help?? |
To capture STDERR with backquotes, use: $output = `cmd 2>&1 1>/dev/null`;If you want both, omit redirecting STDOUT to /dev/null: $output = `cmd 2>&1`;However, it is generally safer to use open3.
In Section
Seekers of Perl Wisdom
|
|