Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Anonymous Hash in Constructor

by sundialsvc4 (Abbot)
on Oct 18, 2012 at 19:44 UTC ( #999806=note: print w/replies, xml ) Need Help??


in reply to Anonymous Hash in Constructor

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999806]
help
Chatterbox?
Discipulus shall be damned all progs that do not provide different font size!

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2017-09-26 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?