Perl: the Markov chain saw | |
PerlMonks |
Some things I would have never guessed...by Rhose (Priest) |
on Sep 07, 2001 at 17:04 UTC ( [id://110881]=note: print w/replies, xml ) | Need Help?? |
I was pretty sure what AidanLee posted above would work correctly, and I would suggest redirecting STDERR as busunsl posted below -- 2>$FILE. What I did *not* know would work was the following code:
Please forgive me, but I only had access to a Windows 2000 PC. *Smiles*
This results in "Could Not Find C:\TEMP\doesnotexist1" being displayed on the screen (default for STDERR) and "Could Not Find C:\TEMP\doesnotexist2" being written to stderr.out. Looks like system() inherits STDERR from the Perl script.
In Section
Seekers of Perl Wisdom
|
|