http://www.perlmonks.org?node_id=999838


in reply to Anonymous Hash in Constructor

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.