Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Swish 2.4.5 working,

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Mon Feb 19 2007 - 15:59:01 GMT
Bill Moseley scribbled on 2/19/07 9:40 AM:
> On Mon, Feb 19, 2007 at 03:05:48PM +0100, Bernard T. Higonnet wrote:
>> Since I think it should assumed for the time being that Apache/mod_perl is 
>> working, the most likely explanation is that Apache is not using the same 
>> SWISH::API that the command-line perl script is using (it would be using 
>> something left over from my prior unsuccessfull installation of SWISH::API).
>>
>> I have never had much luck changing @INC but I guess I'll have to find out 
>> how!
> 
> Hum...
> 
> Well, I suspect any basic Perl tutorial might explain that -- and
> would save you and the list time in the long run.  But,
> 
> use lib '/path/to/someplace';
> 
> And in a mod_perl handler you could simply one of these:
> 
>     warn "@INC";
> 
>     warn join "\n", @INC;
> 
>     use Date::Dumper;
>     warn Dumper @INC;
> 
> and watch your error log.
> 

I also frequently do:

  warn Dumper \%INC;

since that will show path to each module actually used.

-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Mon Feb 19 10:57:06 2007