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
tied hash key stringification weirdness #13666
Comments
From zefram@fysh.orgCreated by zefram@fysh.orgIn the tied hash system, the documentation isn't clear about whether What actually happens doesn't follow either of the possible coherent Demo: $ perl -MDevel::Peek -lwe 'package Foo { sub TIEHASH { bless({}, "Foo") } sub FETCH { Devel::Peek::Dump $_[1]; undef } } package Bar { sub new { bless({},"Bar") } use overload "\"\"" => sub { print "overload called"; }; } tie %a, "Foo"; $b = Bar->new; $_ = $a{$b}' If the "print" is changed to "die", so that the object can't be The FIRSTKEY/NEXTKEY system consistently accepts non-string keys, and Perl Info
|
Migrated from rt.perl.org#121446 (status was 'new')
Searchable as RT121446$
The text was updated successfully, but these errors were encountered: