http://www.perlmonks.org?node_id=154391


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.