Jonathan Vanasco wrote:

On Jan 31, 2005, at 10:55 AM, Kent, Mr. John ((Contractor)) wrote:

will it work to NOT use EXPORT and say in the startup

/use/lib qw (/users/webuser/homegrown/lib);
use MyModule();


That's what I do.




Does your module work with a blessed references, or it a module containing methods?


The above declaration is for OO coded modules that utilize blessed references.

If your module doesn't use blessed references you should try using Exporter.

Exporter pollutes the module namespace a bit so maybe it isn't such a purist thing to use but the alternative is to call a method explicitly like: MyModule::foo(...)

   perldoc Exporter

Leo



Reply via email to