Why not simply provide a 'get' method?
$self->get ('name'); ... sub get { my ($self, $param) = @_; return undef if ! exists $self->{$param}; return $self->{$param}; }
Alternatively there are CPAN modules such as Class::MethodMaker that will generate getters and setters for you given a list of properties.
In reply to Re: Link methods to hash values
by GrandFather
in thread Link methods to hash values
by Herkum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |