There may be more lightweight ones available, but there's none that jumps at me right now.
Yet, the principle isn't hard. Take a look at the source of WWW::Webrobot::Attributes for example: it's just one import routine, that generates a (combined getter/setter) sub for each attribute.
In reply to Re: Any one-liners for set and get functions?
by bart
in thread Any one-liners for set and get functions?
by sg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |