|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Anonymous Hash in Constructorby sundialsvc4 (Monsignor) |
| on Oct 18, 2012 at 19:44 UTC ( #999806=note: print w/ replies, xml ) | Need Help?? |
|
Indeed, I prefer to define a local variable in my constructor, to use that to initialize the structure as need-be, bless it, and then return it. It’s simply that particular author’s habit or perhaps meant in the name of editorial clarity. The single most-important idea that “you really need to grok, and grok thoroughly,” is that all-important notion of what bless actually does.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||