warn "This goes to your screen\n"; open STDERR,">stderr_file.txt"; warn "this goes to the file";
lee At 13:38 04/05/2002 -0700, 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? > >Thanks, >Tony > > >-- >even the safest course is fraught with peril > >_______________________________________________ >ActivePerl mailing list >[EMAIL PROTECTED] >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Lee Goddard perl -e "while(1){print rand>0.5 ? chr 47 : chr 92}" _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
