Use something like the IPC::Run3 module for this.
You can capture STDERR into a scalar reference.
In reply to Re: Saving Standard Error by tokpela in thread Saving Standard Error by bichonfrise74