http://qs321.pair.com?node_id=689514


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}