Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: OOP's setter/getter method - is there a way to avoid them?by shmem (Chancellor) |
on Oct 27, 2015 at 22:51 UTC ( [id://1146190]=note: print w/replies, xml ) | Need Help?? |
For real encapsulation of an objects data, which provides black box inheritance, is thread safe and has little impact on performance, check Alter, which has received too little attention by the Perl Community up to now.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|