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
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/
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;
>
>
>
> --
> 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
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
> 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 '
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
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
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
Here is a sample of a long list:
[Fri Jun 17 15:17:19 2005] Unix.pm: Subroutine _cwd redefined at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/File/Spec/Unix.pm line
470.
[Fri Jun 17 15:17:19 2005] Carp.pm: Subroutine import redefined at
/usr/lib/perl5/5.8.0/CGI/Carp.pm line 289.
This only h
10 matches
Mail list logo