Exiting a script, or how do you do exit?

2002-03-13 Thread Brian Lavender
I developing some code, which I am running under Apache::Registry I seem to recall that you don't want to put exit; in a script, because the script continues to run. I have some code, where I may send a redirect, and then I am done. Is there a pseudo exit, or return command? brian -- Brian

Re: Exiting a script, or how do you do exit?

2002-03-13 Thread Stas Bekman
Brian Lavender wrote: Found the FAQ's. Seems that I can put in goto END; and then put an end block in the code. END: { 1; } no, you use exit() as is with Registry and Apache::exit with handlers. see: http://perl.apache.org/guide/porting.html#Terminating_requests_and_process On

Re: Exiting a script, or how do you do exit?

2002-03-13 Thread Brian Lavender
Found the FAQ's. Seems that I can put in goto END; and then put an end block in the code. END: { 1; } On Wed, Mar 13, 2002 at 07:07:18PM -0800, Brian Lavender wrote: I developing some code, which I am running under Apache::Registry I seem to recall that you don't want to put