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

Well, right now I'm not using Exporter at all. I'm just calling the functions like so: Zephir::function('param');

-caedes

  • Comment on Re: Re: Spanning Modules Across Multiple Files

Replies are listed 'Best First'.
Re: Re: Re: Spanning Modules Across Multiple Files
by yodabjorn (Monk) on Jul 05, 2002 at 12:53 UTC
    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

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