rajuskark has asked for the wisdom of the Perl Monks concerning the following question:
$SIG{__DIE__} = \&HandleDieError; while (){ handleDBProcess(); RemainingTask(); FinalTask(); } handleDBProcess { #do something #process } RemainingTask{ #again do something #but got error } FinalTask{ #Final task to process } HandleDieError { my $error = @_; if ($error){ #Fixed error #I want to continue } ##but doen't do anything #it shows running but no any process goes on }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Daemon Continue after $SIG{__DIE__}
by Corion (Patriarch) on Oct 19, 2015 at 11:50 UTC | |
|
Re: Daemon Continue after $SIG{__DIE__} (eval)
by tye (Sage) on Oct 19, 2015 at 14:24 UTC | |
|
Re: Daemon Continue after $SIG{__DIE__}
by soonix (Chancellor) on Oct 20, 2015 at 11:12 UTC | |
|
Re: Daemon Continue after $SIG{__DIE__}
by soonix (Chancellor) on Oct 21, 2015 at 05:52 UTC |