Welcome to WebmasterWorld Guest from 184.72.177.182

Forum Moderators: phranque

Message Too Old, No Replies

Path to Perl on a NT Host

     
6:21 pm on Feb 21, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 8, 2000
posts:700
votes: 0


This is a very common path to "Perl", #!/usr/local/bin/perl. If you are on a NT host would this still be correct?

6:26 pm on Feb 21, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Feb 28, 2001
posts:208
votes: 0


No. Windows NT does not have the same directory structure as a Unixish box. In general, if I recall correctly, you don't need the path line in Perl programs for windows.
7:03 pm on Feb 21, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 8, 2000
posts:700
votes: 0


Should it be deleted, as it is the very first line of the script?
5:31 pm on Feb 22, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Feb 28, 2001
posts:208
votes: 0


I believe if it's there, Perl on Windows simply ignores it. Easy enough to fix, if not. :)
5:28 am on Feb 24, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts:4392
votes: 0


You generally don't need a "Path to Perl" on NT since the path to perl is included in the PATH variables at the system level. However, I do code the full path anyway as a reference. (E:\perl\bin\perl.exe)
10:52 am on Feb 27, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 26, 2001
posts:1076
votes: 0


always best to use
#!perl

no need for a path at all. i think you need to keep this line in just to tell the server it's a perl script, but wouldnt stake my life on it. i do a lot of perl coding on windows and always keep this line in like this and all works fine.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members