CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
INC path . ?

 



mike robb
Deleted

Sep 15, 2000, 7:37 PM

Post #1 of 3 (935 views)
INC path . ? Can't Post

I have a perl script that runs on one server and not on another (it has the correct permissions and was stored in the correct format).

It seems that the first server has the directory of the script in the path (.) INC but the second does not.

If i print @INC I see that "." is the last on both servers, but other files in the "." directory are not being picked up unless I explicetly place the /home/user/public_html/cgi-bin/blah string into the INC array. then it works.

Any ideas on how the server could be configured differently to cause this?
- the versions of perl are identical according to the --version outputs)

thanks.

--Mike


fashimpaur
User / Moderator

Sep 22, 2000, 9:49 AM

Post #2 of 3 (935 views)
Re: INC path . ? [In reply to] Can't Post

Mike,

That is a common problem that I run into also.

Use this:

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>


use lib ("/home/user/public_html/cgi-bin");

... or (I think this should work) ...

use lib (glob(.));
</pre><HR></BLOCKQUOTE>

It's a good practice also just in case a server is not set up to handle the . reference.

HTH,

Dennis


mike robb
Deleted

Sep 22, 2000, 1:21 PM

Post #3 of 3 (935 views)
Re: INC path . ? [In reply to] Can't Post

cool.

thanks for the suggestions.

i'll have to go give them a try!


cheers.

--mike

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives