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
Pseudohashes confuse tie() #867
Comments
From mjtg@cus.cam.ac.ukgives the appropriate error but does something silly Presumably it is being confused by the pseudo-hash logic. And should tie() on pseudo-hashes Do The Right Thing anyway? Mike Guy % ./perl -V Characteristics of this binary (from libperl): |
From [Unknown Contact. See original ticket]M . J . T . Guy <mjtg@cus.cam.ac.uk> writes:
Treating a tied ARRAY as a hash should trigger the pseudo hash code. Likewise a tied HASH should be usable as the index hash. -- |
From [Unknown Contact. See original ticket]Nick Ing-Simmons <nick@ing-simmons.net> wrote
But that doesn't work, as my original example showed. The problem is What I presume is happening, without having done much research, is that tie %$avhv, ... the % dereference correctly understands about the pseudo-hash case,
The latter already has a test case in t/op/avhv.t, presumably by yours Mike Guy |
@cwest - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#1797 (status was 'resolved')
Searchable as RT1797$
The text was updated successfully, but these errors were encountered: