in reply to Re: Re: Spanning Modules Across Multiple Files
in thread Spanning Modules Across Multiple Files

hrmm.. usually a good idea to at least setup @EXPORT so you don't poision your main app with all your functions.
package my_module ; use strict ; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); $VERSION = 1.00; @ISA = qw(Exporter); @EXPORT = qw(&db_open &db_close) ; @EXPORT_OK = qw(&db_open &db_close &db_store &db_fetch &db_keys); #your subs go here 1;
Least this is what i do.. look at the Module Tutorials

Replies are listed 'Best First'.
Re: Re: Re: Re: Spanning Modules Across Multiple Files
by caedes (Pilgrim) on Jul 05, 2002 at 12:55 UTC
    Yes, that's exactly the point. I'm not exporting anything and so not poisoning the caller's namespace with anything that it doesn't specifically use.

    -caedes

      DOH !
      /me sees the "require" in the posted code!
      I did say slap me :-)