Brian Raven wrote:

> If you mean your "warn" message, all you need to do is redirect the
> STDERR file handle to a scalar. See 'perldoc -f open' for how to do
> that. See the 'open FILEHANDLE,MODE,REFERENCE' variant, which is new in
> Perl 5.8.

If you have 5.8 and use this method, make sure you close STDERR
before opening to the scalar ref.

EG:

my $out;
close STDERR;
open STDERR, '>', \$out;
print STDERR "Some stuff\n";
print STDOUT "\$out='$out'\n";
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to