Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Avoiding global object handle

by mamboking (Monk)
on Mar 26, 2002 at 13:21 UTC ( [id://154391]=note: print w/replies, xml ) Need Help??


in reply to Avoiding global object handle

If the code that needs the handle is in a class, then you could pass the handle in on instantiation and save it as an attribute of the object. It would then be available to all of the methods of the class.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-05-25 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found