Stas Bekman wrote:
Geoffrey Young wrote:

Argument "foo ..." isn't numeric ...

since normally $@ doesn't have the IV slot populated.



can we set the iv slot in ERRSV to 0 at some convenient place, like at the
top of modperl_callback()?


We can, but it won't do any good, if a non-modperl call fails and resets it.

In any case, objects are good since we need to store more than just rc. The way die works, if you don't let it generate the error message on its own, you don't get the file/line trace and when you try to print it, you don't have it anymore. So you want to store file/line in the object too. So I'm now able to generate the short trace (error at file x line y). Now I'm trying to figure out how to get things like Carp::confess in SIG{__DIE__} produce a useful info.


Using a dual var $@ is exactly the same as using exception object, since perl simply doesn't do anything about it and simply gives it to the user back if trapped in eval, or calles die "[EMAIL PROTECTED]" if non-trapped.

--
__________________________________________________________________
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