Welcome to the Monastery | |
PerlMonks |
Re: Setting accessor with Object::Tinyby jcb (Parson) |
on Aug 12, 2019 at 03:03 UTC ( [id://11104312]=note: print w/replies, xml ) | Need Help?? |
I generally just use the Perl core object system rather than pulling in other packages. For what Object::Tiny gives you, have you considered using the core fields pragma instead? I have often used an internal _set method like: (disclaimer: this exact code not tested)
In Section
Seekers of Perl Wisdom
|
|