Stas Bekman <[EMAIL PROTECTED]> 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:[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]
