BrowserUk, I see a contradiction between your post.
In Re^2: regex transforms of object attributes, you say (rightly) that encoding a hash key string in the caller code breaks the encapsulation of the object. Using an lvalue method is, however, almost just as wrong. An lvalue method in Perl cannot do a check on what value you set, or do some computation with the rhs expression (in case the implementation of the attribute changes), so it is IMO not much better than just using a hash key. This is the weakness of the OO support of perl.
In reply to Re^2: regex transforms of object attributes
by ambrus
in thread regex transforms of object attributes
by Tuppence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |