Matt Sergeant wrote:
On 30 Apr 2004, at 21:06, Stas Bekman wrote:

What do you think? Any better ideas?


<joking>
sub CORE::GLOBAL::exit { dump }
</joking>

(sorry, been a long week :-)

:)


I have the implementation ready, but it has a problem if exit wasn't called. You can't match "" == 1234. At the moment $@ is "" when exit is called or when eval was successfully completed.

So I'm planning to move to exception objects for exit as well. The new ModPerl::EXIT constant will match $@ when exit will be called in the eval context.

Meanwhile I provided the infrastructure for ModPerl::Const constants. So if you ever wanted to add a new constant specific to ModPerl, it should be easy now (after I commit the new stuff).

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to