Subject: | Incorrect examples in documentation |
Class::Default version 1.3
The Slashdot::User example defines the subs name and favourite_color as:
sub name { $_[0]->{name} }
sub favourite_color { $_[0]->{favourite_color} }
Instead, they should be:
sub name { $_[0]->_self->{name} }
sub favourite_color { $_[0]->_self->{favourite_color} }