intertwingled wrote:

> On most *nix shells, I can use 2>&1 to redirect
> standard error to standard output, and thus capture
> it when I do a `` or open(BLAH, "blah 2>&1 |"), but
> 2>&1 doesn't work under DOS.  Anyone know of
> another trick to easily capture standard error output,
> without saving it to a temp file?


Do it in  the calling script before issuing the system call, pipe or `` call.

You can save the previous state and restore it if necessary.  See open in
perlfunc man page.
-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to