Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Blessing tied hash

by JavaFan (Canon)
on May 05, 2012 at 14:43 UTC ( #969049=note: print w/ replies, xml ) Need Help??


in reply to Blessing tied hash

Is it possible to create an object blessing tied hash?
What happened when you tried? It only takes a few lines to set up a tied hash, and a single line to bless it.


Comment on Re: Blessing tied hash
Re^2: Blessing tied hash
by anazawa (Scribe) on May 05, 2012 at 15:42 UTC
    Nothing unusual happened. Most of documents about Perl OOP says "bless() a reference to a hash (or an array) to create an object", and so I was under the impression referents shouldn't be tied. But they don't say "Don't bless() a reference to a tied hash". I wanted to reconfirm we can do so here PerlMonks.org :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-12-29 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls