Leo,

I am not using OO coded modules.  My  modules 
contain methods.

Other routines call this module's routines as you indicated:

In order to solve other mod-perl problems I followed Stas's recommendation
to call all my routines thusly:

MyModule::foo(...)

So, since I am doing it this way I should use in my startup:

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

and not use EXPORT?

Thank you,
John Kent

-----Original Message-----
From: Leo [mailto:[EMAIL PROTECTED]
Sent: Monday, January 31, 2005 8:37 AM
To: Jonathan Vanasco; modperl@perl.apache.org
Subject: Re: Using home-grown modules in mod-perl


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