Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: What is safe to do in an END block?

by starbolin (Hermit)
on Jun 01, 2008 at 05:08 UTC ( #689514=note: print w/replies, xml ) Need Help??

in reply to What is safe to do in an END block?

It all depends on whether you want the code executed after a die call or not. Remember that the code inside the END block will be executed after a die. So if, as in your case, the database was not successfully opened, your END code needs to detect that. Other than that one caution, I wouldn't hesitate to put what you need into an END block. That is what it is there for.

s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s |-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,, $|=1,select$,,$,,$,,1e-1;print;redo}

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2022-09-30 22:00 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (126 votes). Check out past polls.