On Mon, 30 Apr 2001, Matt Sergeant wrote:

>
> > [1] for my Perl exception package (yes, another one :) which, in its
> > development version, now mostly does the Right Thing for mod_perl. See
> > http://sourceforge.net/projects/perlexception/ for the curious.
>
> Since I'm doing the mod_perl exception handling talk at TPC, I feel
> obligated to ask about this...
>
> It doesn't seem any different from Error.pm to me, except in syntax. Maybe
> you could expand on why/where it is different?

I tried using some different exception packages in the past.  What I
realized is, die() and eval {} ARE Perl's exception handling mechanism.
die() and eval {}, together, have complete exception throwing and handling
functionality.  As a bonus, they lack Java's exception bondage and
discipline.

So, what's wrong with die() and eval {}?

-jwb

Reply via email to