Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Sharing Namespaces

by davido (Cardinal)
on Jan 27, 2006 at 07:28 UTC ( [id://525918]=note: print w/replies, xml ) Need Help??


in reply to Sharing Namespaces

Perl comes prepackaged with Exporter, which is what you need. It allows for exporting none, some, or all variables, functions, ...whatever. Its documentation goes into better and more accurate detail than I can offer. Exporter (and other namespace issues) is also discussed in depth in perlmod. Good stuff there!


Dave

Replies are listed 'Best First'.
Re^2: Sharing Namespaces
by skazat (Chaplain) on Jan 27, 2006 at 09:21 UTC

    Well, I understand how Exporter exports stuff from a module, but how would I basically, /import/ a namespace into another module? That's basically what I'm trying to figure out.

    Sort of the reverse.

     

    -justin simoni
    skazat me

    <script language="JavaScript" src="http://quotes.prolix.nu/cgi-bin/random_quote_js.pl"> </script>

      A namespace is not a data structure, so you wouldn't want to do that :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-04-23 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found