> just a quick one:How can I access loaded modules from other modules using
> mod_perl, i.e. say that I am running module contacts.pm within modperl,
> and I want from ContactPersons.pm access the contacts module, given that
> the two modules/packages are loaded separately.
> any advice appreciated!

I suggest the following entry in module 'contacts.pm'

use base qw( ContactsPersons );

Alternatively you could:

push @ISA, qw(ContactsPerson);

if you are more concerned with encapsulation of package variables.  But I
think the first suggestion is generally more commonly used by mod_perl
engineers.

Fred

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to