in reply to Re: Redirecting and using output from executed programin thread Redirecting and using output from executed program
Also try the IO::Capture modules.