Try the Capture::Tiny module on the CPAN. It works very well. 

On Mar 29, 2012, at 3:08 PM, Nilanjan Palit <[email protected]> wrote:

> 
> 
> 
> 
> I'm running a system command from within a Perl script and need to capture 
> both stdout and stderr. The `$cmd 2>&1` redirection, which works on Unix 
> platforms, does not seem to work on Windows -- it only captures stdout while 
> stderr still gets dumped to the console. Is it possible to capture stderr 
> directly from inside Perl on Windows platforms? Thanks, -Nilanjan             
>               
> 
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/boston-pm

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to