Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Anonymous Hash in Constructorby jmlynesjr (Deacon) |
on Oct 19, 2012 at 01:14 UTC ( [id://999838]=note: print w/replies, xml ) | Need Help?? |
Wouldn't an anonymous hash provide for/enforce encapsulation, a basic OOP concept? James Update2:Thanks for the explanation. As always, I have more reading to do! My thought was that naming the hash would create a symbol table entry that would allow direct access from the outside, not that you would want to or should do that.
In Section
Seekers of Perl Wisdom
|
|