Check out IPC::Run3
In reply to Re: Capturing both STDERR and STDOUT without shell redirect by tokpela in thread Capturing both STDERR and STDOUT without shell redirect by DentArthurDent