Subject: | Needs localization of $@ Validate.pm |
Currently, Param::Validate's BEGIN block is using an eval block without
localizing $@. Therefore, if Params::Validate is somehow used in a
DESTROY sub, multi-level exception handling will fail.
I can probably provide a minimal example for that, but not before
Monday.
Related links:
http://stackoverflow.com/questions/2949622/is-evaling-in-a-cpan-module-
without-localizing-a-bug (my question about filing this bug report)
http://search.cpan.org/dist/Perl-
Critic/lib/Perl/Critic/Policy/ErrorHandling/RequireCheckingReturnValueO
fEval.pm
Apparently, the recommendation to localize $@ only appears in the
german $foo magazine, so I can't give you a link to that.