>
> I had problem with the 'use' statement. It did not take the
> 'correct' search path:
>
> My document structure looked like this:
>
> .../test/foo.epl
> .../test/Bar.pm
> .../production/foo.epl
> .../production/Bar.pm
>
> foo.epl contained a 'use Bar.pm' statement. I expected 'test/foo.epl'
> took 'test/Bar.pm', and 'production/foo.epl'
> took 'production/Bar.pm', but it was not the case.
>
What about reading
perldoc -f use
and
perldoc -f require
??
use searches @INC and never takes a filename, as require it loads a module
only once and will not reload if it's already in memory. So what you are
trying todo cannot work!
Also it is not possible to load two different modules into the same
namespace (same name after package), but this is a Perl problem and not
special for Embperl.
Gerald
> 'test/foo.epl' arbitrary took 'production/Bar.pm' or 'test/Bar.pm'
> as it saw convenient. The same thing happened to 'production/foo.epl'.
>
> It seems to me this has something todo with caching as foo.epl load the
> correct Bar.pm after I restart the httpd. But after
> a few requests they start messing up.
>
> What should I do to fix this problem?
>
> Thanks in advance.
> Nhan.
>
>
> P.S: I am using Embperl 1.2.0 and mod_perl 1.21-2.
>
>
> --
> + ----------------------------------------------------------+
> | Nhan H. Trinh Phone: (972) 661 3292 x. 40 |
> | ETC Inc. email: [EMAIL PROTECTED] |
> + ----------------------------------------------------------+
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
-------------------------------------------------------------
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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]