in reply to unix commands output
The ways to avoid this come down to either redirecting undesirable output to /dev/null, e.g. system 'call > /dev/null 2> /dev/null' or using an approach that captures the stream, like qx/backticks, IPC::Open3 or pipe/fork/exec. Note that backticks only handle STDOUT (as with IPC::Open2), so many people will use an explicit redirection of STDERR with a capture of STDOUT.
For all the gritty details, see perlipc.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|