2007/10/4, Mark Wagner <[EMAIL PROTECTED]>:

>
> Will an END block get executed even if the script exits through an
> error such as calling an undefined function?
>

If script die by itself,END is executed.
Some kill signals like SIGINT,SIGTERM can let script die and END be
executed,but some won't,like SIGKILL,when input `kill -9 pid` from
terminal,END won't be happened.
This is because kill signals like SIGINT,SIGTERM can be
intercepted,script has the chances to exit gracefully,so END can be
executed.But SIGKILL can't be intercepted,when sending kill
signal,script will be forced to die immediately.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to