Re: Getting lots of redefined statements in the error_log

2005-06-20 Thread Martin Moss
Can you confirm you have the same version of Perl on both systems? I've seen these errors on perl 5.8 after upgrading from perl 5.005 Marty p.s. I still have them too, so any help with this issue would be useful to me too... --- Boysenberry Payne <[EMAIL PROTECTED]> wrote: > Here is a samp

RE: Getting lots of redefined statements in the error_log

2005-06-20 Thread Aaron Scott
ine. --- Aaron Scott Software Engineer Cymphonix -- Network Composer Office: (801) 938-1500 http://www.cymphonix.com > -Original Message- > From: Martin Moss [mailto:[EMAIL PROTECTED] > Sent: Monday, June 20, 2005 9:06 AM > To: Boysenberry Payne; mod_perl > Subject: Re: Gettin

RE: Getting lots of redefined statements in the error_log

2005-06-20 Thread Perrin Harkins
On Mon, 2005-06-20 at 14:06 -0600, Aaron Scott wrote: > FWIW, I've noticed redefined subroutine "errors" when I require a single > package using two different statements. E.g., > > --- File1.pm > > use MyPackage; > > --File2.pm > > use SomeDir::MyPackage; > > > > Loading File2 when Fil

RE: Getting lots of redefined statements in the error_log

2005-06-20 Thread Aaron Scott
> Huh? Are you saying that MyPackage and SomeDir::MyPackage are somehow > the same file? Or that they actually declare the same package name? Or > don't declare any package name at all? > > - Perrin For a file /path/to/SomeDir/MyPackage.pm, if I 'use MyPackage;' in one file, then subsequently '

RE: Getting lots of redefined statements in the error_log

2005-06-20 Thread Perrin Harkins
On Mon, 2005-06-20 at 16:04 -0600, Aaron Scott wrote: > For a file /path/to/SomeDir/MyPackage.pm, if I 'use MyPackage;' in one > file, then subsequently 'use SomeDir::MyPackage' in another file, the > second 'use' generates redefined subroutine errors. But those should be two totally separate file

RE: Getting lots of redefined statements in the error_log

2005-06-20 Thread Aaron Scott
> 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 SetHandl

RE: Getting lots of redefined statements in the error_log

2005-06-20 Thread Perrin Harkins
On Mon, 2005-06-20 at 16:45 -0600, Aaron Scott wrote: > I can duplicate it with the following simple example: > > -- mod_perl.conf > > PerlRequire conf/startup.pl > > > SetHandler perl-script > PerlResponseHandler MyHandler > > > > -- startup.pl > > use SomeDir::MyPackage; > > > > --

Re: Getting lots of redefined statements in the error_log

2005-06-21 Thread Boysenberry Payne
I can duplicate it with the following simple example: -- mod_perl.conf PerlRequire conf/startup.pl SetHandler perl-script PerlResponseHandler MyHandler -- startup.pl use SomeDir::MyPackage; -- /path/to/SomeDir/MyPackage.pm package SomePackage; sub foo { return 1; } 1; -- /path/

Re: Getting lots of redefined statements in the error_log

2005-06-21 Thread Perrin Harkins
On Tue, 2005-06-21 at 16:53 -0500, Boysenberry Payne wrote: > I think this is my scenario. In that case, fix your @INC and everything will be fine. The problem described here is not related to mod_perl. > If one was set up as DSO and the other mod_perl wasn't would that > make a huge difference