sub foo { my $self = shift; @_ or return $self -> {foo}; $self ->{foo} = shift; $self; }
-M
Free your mind
In reply to Re^2: Method Chaining and Accessors
by Moron
in thread Method Chaining and Accessors
by linenoise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |