Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Self resurrecting perl scripts

by ftforger (Sexton)
on Apr 11, 2001 at 21:54 UTC ( #71771=note: print w/replies, xml ) Need Help??


in reply to Self resurrecting perl scripts

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://71771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-05-16 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (64 votes). Check out past polls.

    Notices?