so you want something like:
sub access { my ($self, $arg) = @_; return $self->{$arg}; } ... my $arg='B';
Prints (using previous sample code):
F a B i o http://wibble.wobble.com
In reply to Re^3: Accessing values of a Hash object
by GrandFather
in thread Accessing values of a Hash object
by dReKurCe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |