In just a couple of lines, you have get/set accessors. Modify as necessary, but that's an easier way to handle it.sub table { my $class = shift; $table = shift if @_; return $table; } sub primary { my $class = shift; $primary = shift if @_; return $primary; }
In reply to Re: Perl OOP variables
by chromatic
in thread Perl OOP variables
by BMaximus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |