in reply to How to trick this program (weird catch-the-output problem)?
http://perldoc.perl.org/IPC/Open3.html or http://search.cpan.org/~rsod/IPC-Run-0.80/lib/IPC/Run.pm
Cheers Chris