in reply to Any one-liners for set and get functions?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Any one-liners for set and get functions?
by grinder (Bishop) on Oct 05, 2007 at 08:59 UTC | |
|
Re^2: Any one-liners for set and get functions?
by moritz (Cardinal) on Oct 05, 2007 at 09:14 UTC |