Sounds like a job for IPC::Run3 to me.
Addendum: See also the FAQ
In reply to Re: Modify system() call output only if printed to STDERR
by hippo
in thread Modify system() call output only if printed to STDERR
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |