Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Object and tied hash all at once?

by Brovnik (Hermit)
on Jul 07, 2001 at 00:43 UTC ( #94603=note: print w/ replies, xml ) Need Help??


in reply to Object and tied hash all at once?

Do you have access to (i.e. are you writing) Class::Whatever ?

If so, define Class::Whatever as a subclass of Tie::StdHash,

package Class:whatever; @ISA = (Tie::StdHash)
you can use the hash capabilities plus whatever else you add to the new class, including e.g. methods.

Tie::StdHash is part of Tie::Hash
--
Brovnik


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://94603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2015-07-06 12:29 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 (74 votes), past polls