Jonathan Mast wrote:
I want to write the errors caught by a 'die' clause into a file.In others words, open F ">>somefile.log"; blah->blah or die (print F $@) but the above does work.
die() sends its output to STDERR, so open STDERR, '>', 'somefile.log' or die $!; blah->blah or die $@; will do what you want. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/