in reply to Re: Method Chaining and Accessorsin thread Method Chaining and Accessors
sub foo { my $self = shift; @_ or return $self -> {foo}; $self ->{foo} = shift; $self; } [download]
-M
Free your mind