sub option { my $self = shift; if (1 == @_) { return $self->{option}->{ shift(@_) }; } else { %{$self->{option}} = (%{$self->{option}}, @_); } }
In reply to Re (tilly) 1: setting and retrieving sub-hash elements in an object
by tilly
in thread setting and retrieving sub-hash elements in an object
by Amoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |