On Wed, 20 Jun 2001, Purcell, Scott wrote:

> Hello,
> I have a question about require when using mod-perl. I produced four simple
> .pl files.
> main.pl, one.pl two.pl three.pl
>
> >From the main.pl you can link to either one two or three.pl. Pretty simple.
>
> The problem begins when I put a require in "one.pl, two.pl, and three.pl".
> If in each of those files I put in for instance:
> require "D:/Apache/mod_perl/query.pl";
>
> When I click on the main, and lets say I go to one.pl it works fine.
> If I then proceed to click on two.pl (it says query.pl not found), even
> though there is a require.
>
> Restart Apache,
> Then click from main to two.pl it works fine.
> If then I go to one.pl error (it says query.pl not found).
>
> So my question is why this bazaar behavior. If I change the query.pl to a
> module and use it in each of the pages it is fine. I just find this behavior
> rather funny. If anyone has any insight please update me.

please take some time off to read the guide and most of your questions
will be answered before you even knew you had them. This particular
question is answered here:
http://perl.apache.org/guide/porting.html#Name_collisions_with_Modules_and

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


Reply via email to