OP might also find Capture::Tiny useful.
In reply to Re^2: How to get output from a spawned cmd prompt? by BioLion in thread How to get output from a spawned cmd prompt? by Xhings