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
Dumper loses blessedness from unreferenced scalars #14466
Comments
From zefram@fysh.orgCreated by zefram@fysh.org$ perl -MData::Dumper=Dumper -we '@a=(3); bless \$a[0], "Foo"; print Dumper \$a[0]; print Dumper \@a' Dumper is willing to show the blessedness of a scalar that it encounters Due to Dumper displaying aliasing, it *can* end up representing the $ perl -MData::Dumper=Dumper -we '@a=(3,0); $a[1] = \$a[0]; bless \$a[0], "Foo"; print Dumper \@a' Blessed scalar comes before reference: the blessing is not preserved, $ perl -MData::Dumper=Dumper -we '@a=(0,3); $a[0] = \$a[1]; bless \$a[1], "Foo"; print Dumper \@a' Reference comes before blessed scalar: the blessing is preserved, but Perl Info
|
From @tonycozOn Tue Feb 03 03:31:55 2015, zefram@fysh.org wrote:
Similarly: $ ./perl -Ilib -MData::Dumper -le '$x = 3; bless \$x, "Foo"; print Dumper($x)' Tony |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#123721 (status was 'open')
Searchable as RT123721$
The text was updated successfully, but these errors were encountered: