in reply to Are There Error Handlers in Perl?

To add to the unthreaded discussion :), I'd suggest you avoid $SIG{__DIE__} and use eval instead. $SIG{__DIE__} only works well if you are sure that you are the only one using it and you have to be careful about if other people use eval while you are using $SIG{__DIE__}.

$SIG{__WARN__} made sense and generalizing it to also have a $SIG{__DIE__} was a bad idea.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Are There Error Handlers in Perl?