For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > August 2007 > Problem with @INC in XAMPP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem with @INC in XAMPP
Andy

2007-08-23, 7:00 pm

I've installed XAMPP on two Windows machinse for Perl CGI development.
The configuration on both machines should be the same, but on one any
attempt to use the 'require' statement fails with error saying it
"Can't Locate" the specified module.

On the machine where the script run correctly, the contents of @INC
are:


C:/xampp/perl/site/lib
C:/xampp/perl/lib
..

but on the machine where they fail, the contents of @INC are:

C:/xampp/perl/site/lib/
C:/xampp/perl/site/lib
C:/xampp/perl/lib
..
C:/xampp/apache

I suspect that because '.' is not the last item in the @INC list this
is causing a failure? But I don't understand why or how the c:/xampp/
apache path is being added to @INC ?

Any suggestions to resolve this would be greatly appreciated.

Andy

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com