You could write your own version of die:
sub my_die { open(my $fh, ">>", $dieFile); print $fh @_; exit(2); # or die("\n"); # or die(@_); } my $value = somecommand or my_die "$!\n";
Alternatively, you could try hooking $SIG{'__DIE__'}. It's documented in perlvar, under %SIG.
In reply to Re: Perl, Die, and IIS
by ikegami
in thread Perl, Die, and IIS
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |