- or download this
eval {
# my stuff ...
...
} or do {
# what you are currently putting inside if ($@) {...} goes here.
}
- or download this
if($opt_daemon) {
# ... intro stuff
...
$log->error("unable to insert data");
}
}
- or download this
sub runMailHandler {
my ($opt_mailid) = @_;
...
} else {
runMailHandler($opt_mailid);
}