> But those should be two totally separate files with separate package
> declarations at the top.  It doesn't make sense that there would be
any
> namespace collisions.
> 
> - Perrin

I can duplicate it with the following simple example:

-- mod_perl.conf

PerlRequire conf/startup.pl

<Location /loc >
  SetHandler perl-script
  PerlResponseHandler MyHandler
</Location>


-- startup.pl

use SomeDir::MyPackage;



-- /path/to/SomeDir/MyPackage.pm

package SomePackage;

sub foo { return 1; }

1;


-- /path/to/MyHandler.pm

require AnotherPackage;


-- /path/to/SomeDir/AnotherPackage.pm

package AnotherPackage;

use SomePackage;

1;

---

The end result is that %INC has entries:

   SomeDir/MyPackage.pm => /path/to/SomeDir/MyPackage.pm,
   MyPackage.pm => /path/to/SomeDir/MyPackage.pm

and my log file has

    Subroutine foo redefined at /path/to/SomeDir/SomePackage.pm line 3


Reply via email to