Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-07-13 23:15 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.