Sub::Install (recommended) or:
my ($caller_package) = caller; ... no strict 'refs'; *{"${caller_package}::$name"} = $accessor;
In reply to Re^2: Creating flexible method accessor
by Anonymous Monk
in thread Creating flexible method accessor
by puterboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |