- or download this
print LOG "Some message like, \$v=$v\n" if DEBUGING;
- or download this
do this or die "couldn't do it.";
- or download this
$SIG{__DIE__}=sub {print LOG "Script Died" and close LOG if DEBUGING};
# is what I have, but I want:
$SIG{__DIE__}=sub {print LOG "Script Died: $msg" and close LOG if DEBU
+GING};