in reply to Re^2: Bean properties...
in thread Bean properties...

Yes, read wantarray and Context tutorial

Replies are listed 'Best First'.
Re^4: Bean properties...
by buz260 (Novice) on Apr 30, 2009 at 08:03 UTC
    OK, but how can that subroutine be used to store an array as an object property? Also I think I've found a solution, how about this:
    sub AB { my $self =shift; if (@_) { @{ $self->{AB} } = @_ } return @{ $self->{AB} }; }
    Is there a better way to store data per object?