New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute::Handlers relies dangerously on $_ when calling external code #10280
Comments
From lanx.perl@googlemail.comCreated by lanx.perl@googlemail.comThe module Attribute::Handlers relies on that $_ will not be changed when This is due to the fact that _apply_handler_AH_() is called with $_ as loop Here are the corresponding lines in v0.87 240: _apply_handler_AH_($_,'CHECK') foreach @declarations; This causes unnecessary traps for users, please refer to Generally changing these *PHASE*-loops to for my $declaration (@declarations) { should easily solve this issue. here a working diff diff Handlers.pm Attribute/Handlers.pm
245c247,249
249c253,258
Perl Info
|
@tsee - Status changed from 'new' to 'open' |
From @tseeI applied the patch locally and will make a new CPAN release today. The --Steffen |
@tsee - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74052 (status was 'resolved')
Searchable as RT74052$
The text was updated successfully, but these errors were encountered: