in reply to Method Chaining and Accessors
can't you just test for @_?
updated to shift off self. thanks, Moronsub foo { my $self = shift; # oops, forgot this line before if (@_) { $self->{foo} = shift; return $self; } return $self->{foo}; }
In Section
Seekers of Perl Wisdom