If I have a Perl script which calls various packages that in turn spit stuff out to STDERR (using "warn"), how do I capture STDERR into an array within the script? (note: this is within the script, not for some system call or for a script called on the command line..)
Redirecting STDERR to a file file is all very well, but there must be a better solution that redirecting STDERR to a random file and then reading the contents of the file in...
In reply to capturing STDERR within a script by kiz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |