That's not strictly true, though it is messy.
{ package test; sub new{ return bless [], $_[0]; } sub meth1{ print 'meth1'; } }; $t=test->new; $t->meth1; meth1 $h{x}='meth1'; $t->${ \$h{x} }; meth1
In reply to Re: Re: Re: Re: $var as accessor name?
by BrowserUk
in thread $var as accessor name?
by matija
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |