You can probably use IO::Scalar to tie STDERR to a scalar variable. Something like this (untested):
use IO::Scalar; my $stderr; tie *STDERR, 'IO::Scalar', \$stderr;
Now anything written to STDERR will end up in $stderr.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: capturing STDERR within a script
by davorg
in thread capturing STDERR within a script
by kiz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |