http://qs321.pair.com?node_id=482212


in reply to Getting error messages from IIS with PerlScript

Have you tried $SIG{__WARN__} and $SIG{__DIE__}. They are documented in perlvar.