perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Re[2]: Trouble with catching output of prcodures
Date Thu, 08 Jul 2004 14:43:41 GMT
Sherwin wrote:
> On Thu, Jul 08, 2004 at 02:16:53PM +0200, Gerald Richter wrote:
>> In 1.3.6 "die" only ends the current block, not the file. If you
>> want to end processing of the file, you have to use exit, but exit
>> only ends the proessing of the current file, the caller will still
>> continue. You have to catch it somehow there.
>
> Gerald,
>
> By exit, do you mean CORE::exit? Can the poster use Apache::exit to
> achieve what he wants in 1.3.6?
>

Embperl overloads exit, so when you do call just exit Embperl will handle it
for you (the same will happen if you call Apache::exit).

If you call CORE::exit the process (Apache child) will exit imediately. You
normaly don't want this

Gerald

---------------------------------------------------------------------------
Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
---------------------------------------------------------------------------
ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message