Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Self resurrecting perl scripts

by ftforger (Sexton)
on Apr 11, 2001 at 21:54 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found