Philip Mak wrote:
> 
> I noticed that the following bit of code does not work properly:
> 
> require 'test.pl';
> chdir '..';
> require 'test.pl';
> 
> Even though the second require is trying to load a different file, perl
> thinks that it is the same file and therefore doesn't require it again (I
> had to use the 'do' command instead).
> 
> Is this a bug, or is it supposed to work like that?

It's not a bug. See
http://perl.apache.org/guide/porting.html#Name_collisions_with_Modules_and
for more info

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

Reply via email to