Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • The real problem is that you're expecting your set methods to return the value that you just set (at least in your fullname) example. So you now you have a combined get/set method, which is icky.

    If your set methods are are clearly distinct from your getters, then returning $self from setters makes perfect sense in _all_ cases.