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

Re: Object and tied hash all at once?

by PrakashK (Pilgrim)
on Jul 07, 2001 at 00:18 UTC ( #94592=note: print w/ replies, xml ) Need Help??


in reply to Object and tied hash all at once?

Perhaps you already know this, but is 'tied' function what you are looking for?

tie my %$hash, Class::Whatever; # access the object as hash $hash->{foo} = "bar"; # access the tied object directly tied($hash)->SomeMethod();
/prakash


Comment on Re: Object and tied hash all at once?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2015-07-02 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls