We don't bite newbies here... much | |
PerlMonks |
Re: Self resurrecting perl scriptsby ftforger (Sexton) |
on Apr 11, 2001 at 21:54 UTC ( [id://71771]=note: print w/replies, xml ) | Need Help?? |
I have not tried this myself, so take this with a grain
(handful, or other suitable quantity) of salt.
die is "just a function". In your code, I'm assuming you are
using something like get_the_file() || die;
Replace the "die;" with "get_the_file_failed();"
and then write a function/handler for that condition.
Extend as necessary to handle your other conditions.
You only have to have the function to the left of ||
return true on success.
In Section
Seekers of Perl Wisdom
|
|