On Jul 6, 2:11 am, [EMAIL PROTECTED] (Joseph L. Casale) wrote:
> I am reading perldoc.perl.org and am not understanding exit and die clearly.
>
> If I have a conditional in a sub that I want to validate with, what is the 
> correct
> way to do the following:
>
> 1.       End the sub and return back to the script without continuing that 
> sub.

return

> 2.       End the entire script without *any* further execution.

Do you really mean that? Buffered out output not flushed? END {}
blocks not called? Global destructors not called? Nothing?

POSIX::_exit()

It is, I suspect, very unlikely that you really want POSIX::_exit()
but it's there if you are really determined.


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


Reply via email to