http://www.perlmonks.org?node_id=781418


in reply to Checking and verifying a unix command sent in Perl

If you need to capture both STDOUT and STDERR, a more robust option is to use IPC::Open3, which will give you separate filehandles for each.
  • Comment on Re: Checking and verifying a unix command sent in Perl