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 :)