in reply to Re: Error.pm vs closure issue fixed in Perl > 5.8.4 ?
in thread Error.pm vs closure issue fixed in Perl > 5.8.4 ?
but returning from inside a try block is still a problem (and not fixable as long as try blocks are implemented as sub refs),
returning from a 'try' block is not fixable at all. Because 'try' has to be implemented via eval and return in an eval just leaves the eval, it doesn't return from the enclosing subroutine. So this particular problem is a problem with Perl(5)'s implementation of exceptions and not at all a problem specific to Error.pm.
For the problem with Error.pm, s/try/catch/g on your statement:
but returning from inside a catch block is still a problem (and not fixable as long as catch blocks are implemented as sub refs),
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Error.pm vs closure issue fixed in Perl > 5.8.4 ? (return)
by perrin (Chancellor) on Sep 02, 2008 at 21:37 UTC |