Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Pragma-like package

by dave0 (Friar)
on Aug 21, 2007 at 11:18 UTC ( [id://634055]=note: print w/replies, xml ) Need Help??


in reply to Re: Pragma-like package
in thread Pragma-like package

import() has been mentioned, but if what you want to do is to selectively pull in only some methods and variables from the package into your namespace, you might want to look at the Exporter module, which provides an import for you which does just that.
You might also want to take a look at Sub::Exporter instead. It's a newer, better way of manipulating the symbols exported by a module.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found