Chris Rodriguez wrote:
> Hi everyone,
> I saw the following on another PERL list-serve:
> 
> "If you are on windows, then see perlfaq8 if ActiveState perl for
> how to redirect STDOUT and STDERR when doing backticks."
> 
> I'd like to be able to capture STDOUT as a string.  But nothing on perlfaq8 
> struck me as relevant.  Did I miss something?  How do I do this?  I 
> frequently get drastic errors (my computer shuts down!) when I try to use 
> backticks.

Did you read:

        How can I capture STDERR from an external command?

Also check out the perlop man page under:

     qx/STRING/
     `STRING`

     ...

     $output = `cmd`;
# or grab STDERR as well
     $output = `cmd 2>&1`;

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to