-
Notifications
You must be signed in to change notification settings - Fork 561
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
[DOC PATCH fields.pm 0.02] _private not very private #194
Comments
From @schwernpackage Foo; use fields qw(foo bar _private); sub new { package Bar; sub bar { print shift->{_private} } package main; my Foo $obj = Foo->new; $obj->{foo} = 42; $obj->{_private} = 99; The result is 42 and 99. The result -should- be 42 and "You tried to Looking at the code of fields.pm, however, I see no easy way to fix The band-aid solution would be a patch to fields' docs, which I have, below. Also, it was pointed out to me that Protected data members are a *** lib/fields.pm 1999/07/15 00:03:04 -- Michael G Schwern schwern@pobox.com |
Migrated from rt.perl.org#1000 (status was 'resolved')
Searchable as RT1000$
The text was updated successfully, but these errors were encountered: