kiz has asked for the wisdom of the Perl Monks concerning the following question:
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...
-- Ian Stuart
A man depriving some poor village, somewhere, of a first-class idiot.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: capturing STDERR within a script
by davorg (Chancellor) on Mar 26, 2003 at 11:45 UTC | |
Re: capturing STDERR within a script
by bart (Canon) on Mar 26, 2003 at 12:28 UTC | |
Re: capturing STDERR within a script - Solved.
by kiz (Monk) on Mar 26, 2003 at 12:44 UTC | |
Re: capturing STDERR within a script
by RhetTbull (Curate) on Mar 26, 2003 at 13:18 UTC | |
by bart (Canon) on Mar 26, 2003 at 13:49 UTC | |
by RhetTbull (Curate) on Mar 26, 2003 at 16:01 UTC | |
by leriksen (Curate) on Mar 27, 2003 at 03:52 UTC | |
by RhetTbull (Curate) on Mar 30, 2003 at 03:31 UTC | |
by bart (Canon) on Mar 30, 2003 at 12:30 UTC | |
Re: capturing STDERR within a script
by SysApe9000 (Acolyte) on Mar 26, 2003 at 16:47 UTC |
Back to
Seekers of Perl Wisdom