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
Perl confuses a tied hash and its element, so generating a wrong error message #15356
Comments
From @vportonCreated by @vportonThe value of $obj->{X} in the attached file is undef, it is not a blessed This causes a fatal error message, which should not happen (there should $ perl ~/t/perl-bug.pl Perl version: v5.22.2 Perl Info
|
From @vporton |
From @vportonSorry, it is my error, not Perl bug. $obj->{X}->{Y} modifies $obj->{X} transforming it from undef to a hash. So STORE is called. |
From zefram@fysh.orgvia RT wrote:
The attempt is to store an autovivified hash in $obj->{X}, within the -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @tonycozOn Tue May 24 09:44:48 2016, porton@narod.ru wrote:
Closing. Tony |
@tonycoz - Status changed from 'open' to 'rejected' |
From @cpansproutOn Tue May 24 09:44:48 2016, porton@narod.ru wrote:
This may not be relevant to your use case, but I have, in the past, found Tie::Hash::ReadonlyStack (on CPAN) helpful in avoiding accidental STORE calls on tied hashes. -- Father Chrysostomos |
Migrated from rt.perl.org#128231 (status was 'rejected')
Searchable as RT128231$
The text was updated successfully, but these errors were encountered: