in reply to How can I keep object arguments private

Apparently I also need a hint with the readmore tag.
You can not embed readmore tags inside code tags. Place your readmore tags completely outside of your code tags.
<readmore> <c> use strict; </c> </readmore>

Replies are listed 'Best First'.
Re^2: How can I keep object arguments private
by walto (Pilgrim) on May 23, 2010 at 17:45 UTC
    Thanks, that helped with the readmore tag.

    The other problem seems to be more a problem of the object design. With
    $self->{'countries'}->{$country_code}->{'fullname'}= $country; $self->{'countries'}->{$country_code}->{'warnings'} = \%warn; return $self->{'countries'};
    I am able to return just the wanted values without deleting any other properties of the object.
    Are there any other ways to return just the wanted value?
      Invoke laziness first: is there any reason I need to delete the other properties? Or will providing a wanted_value method (obviously a better name is needed!) suffice?