Logged In: YES
user_id=1366

It is perfectly possible to define a method with a name that
is in the map. MethodMapper uses an AUTOLOAD function to
pretend it has all the functions in the map, and AUTOLOAD
doesn't get called unless the method couldn't be found in
the class or any of its ancestors. so you could have sub
description { my ($self, $key, $value) = @_; if (defined
$value) { print STDERR "setting description"; $self->set
($key, $value); } else { my ($p, $file, $line) = caller;
return $self->get ($key, $file, $line); } (hope this comes
out ok) That would get you the exact same behaviour as
without the sub, except now it prints to STDERR each time
you set the description.