We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#1485 (status was 'resolved')
Searchable as RT1485$
The text was updated successfully, but these errors were encountered:
sub new { bless [] }
package main;
my Class $obj = Class->new; @{$obj}{qw(foo bar)} = ("this", "that"); print $obj->{foo};
This dies with "Can't coerce array into hash".
If the constructor is changed to "sub new { bless [\%FIELDS] }" then it all works fine.
I presume this is some bug/oversight in compile-time AVHVs as opposed to those which are defined at runtime.
--
Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern /(?:(?:(1)[.-]?)?\(?(\d{3})\)?[.-]?)?(\d{3})[.-]?(\d{4})(x\d+)?/i
Sorry, something went wrong.
Bug still exists in 5.8.1 RC2 but pseudo-hashes are going away in 5.10.
@schwern - Status changed from 'stalled' to 'resolved'
No branches or pull requests
Migrated from rt.perl.org#1485 (status was 'resolved')
Searchable as RT1485$
The text was updated successfully, but these errors were encountered: