The stupid question is the question not asked | |
PerlMonks |
Re: Does this ctor make sense?by theshz (Sexton) |
on Jan 15, 2013 at 17:56 UTC ( [id://1013433]=note: print w/replies, xml ) | Need Help?? |
I think the OP's question is whether he needs to capture the result of bless and return that. In other words, does "bless" actually change the reference. This was explained well in the book "Object Oriented Perl", bless does change the referant, so you do not need to capture the result. You can use ref to inspect the reference:
In Section
Seekers of Perl Wisdom
|
|