perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [mp2] one more pass on mp2/apr read() functions
Date Thu, 10 Jun 2004 08:37:07 GMT
Joe Schaefer wrote:
> Stas Bekman <stas@stason.org> writes:
> 
> [...]
> 
> 
>>>but somehow I'd rather be attaching handlers to exception classes
>>>(like Java & C# do), not dispatching
>>>on the value of $@ directly.
>>
>>Example?
> 
> 
> perl's eval {} is very slow, and doesn't easily

How slow? All mod_perl handlers run as eval {}

> map to Java's try/catch(ExceptionClass err).  It's
> not something modperl can emulate (Perl6 will
> have it IIRC), though.

There are a few Perl modules that do try/catch thingy, but they usually suffer 
from the closure effect.


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

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


Mime
View raw message