Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Access reference of a tied hash within TIEHASH

by McA (Priest)
on Mar 18, 2013 at 19:00 UTC ( [id://1024123]=note: print w/replies, xml ) Need Help??


in reply to Access reference of a tied hash within TIEHASH

Hi,

I don't really understand your question.

With tie you make the tied object behave like a perl variable of choice. That means you are forced to implement the behaviour you want to achieve.

Can you explain what you want to do?

McA

Replies are listed 'Best First'.
Re^2: Access reference of a tied hash within TIEHASH
by djcp3 (Initiate) on Mar 18, 2013 at 22:14 UTC
    I need to access a reference to the hash being tied inside the TIEHASH function. For instance: tie %hash, $class; sub TIEHASH { my ($title)=@_; # need to access a ref %hash in some way from right here. }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-16 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found