Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Avoiding global object handle

by mamboking (Monk)
on Mar 26, 2002 at 13:21 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2021-09-26 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?