On Wed Apr 27 18:45:33 2011, DOY wrote:
Show quoted text> This is actually intentional behavior. Inside a catch block, you know
> that an exception has been thrown, and that its value is in $_, so you
> can just use it directly. Inside a finally block, however, an
exception
Show quoted text> might not have been thrown, but testing for undef is not sufficient to
> tell whether there was an exception (see "$@ might not be a true
value"
Show quoted text> under "BACKGROUND"). This is why scalar(@_) == 0 when an exception was
> not thrown. If you're already checking @_ like that, however, (and you
> should be, if you care about possible exceptions), then there's no
> reason you can't get the actual error out of @_ as well. I've updated
> the docs and tests in 0.10 to reflect this.
Where can we see the updated docs and tests in 0.10 as githib seems to
stop at 0.06?
Like mschwern I think I would have preferred finally and catch to be
aligned but I never made that clear in the rt I originally added for
finally.
Martin
--
Martin J. Evans
Wetherby, UK