You could add accessors to the object. Like this:
sub count { my $self = shift; return $self->[0] unless @_; $self->[0] = shift; } # ... $cc->count(42); print $cc->count;
In reply to Re^3: C-Style Struct?
by Anonymous Monk
in thread C-Style Struct?
by Mr. Newb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |