Don't ask to ask, just ask | |
PerlMonks |
Re^3: say variable in Classby Laurent_R (Canon) |
on Jun 03, 2018 at 16:32 UTC ( [id://1215785]=note: print w/replies, xml ) | Need Help?? |
but defeats a bit the idea that the object on creation reports its statusIf you want to do that, then you would probably need to create your own constructor with this added feature in it. Or, as shown by mr_ron, you might (re)define the TWEAK submethod, which is called by the new default constructor, so that redefining TWEAK effectively modifies the behavior of new.
In Section
Seekers of Perl Wisdom
|
|