>
> Now when I call test.html. Program cannot find testModule.pm
> (when I use testModule on the same page it's OK).
> How can I define testModule.pm for site wide use?
>
Since every file runs in it's own Perl namespace, you cannot import your
test function in all files at once. So you either have to write the
use testModule ;
in every file where you want to have the functions imported or call the test
function via full name
testModule::test
The third possibilitie is to let all files run in the same namespace, which
is decribed here http://perl.apache.org/embperl/TipsAndTricks.pod.cont.html
, but depending on how you use it, this may increase memory usage.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]