Help for this page
$SIG{__DIE__} = \&die_handler; my $err_stmt;
sub die_handler() { ... print FH $err_stmt; close FH; }