in reply to Re: Re: Re: Error Handling in Object-Oriented Perl
in thread Error Handling in Object-Oriented Perl

I think a little more idiomatic construct would be:

eval { ... } die if $@;
Which will propagate the $@ (appending "... propagated" if $@ is a string, and calling $@->PROPAGATE() if $@ is an object, and then issuing die $@ (this is only documented from perl 5.6, so it might not work like this on older perls...)

See also:

perldoc -f die
-- Joost downtime n. The period during which a system is error-free and immune from user input.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Error Handling in Object-Oriented Perl
by lestrrat (Deacon) on May 24, 2002 at 17:30 UTC

    Ha! Learn something new everyday ;) thanks for the pointer :)