> 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.