Welcome to WebmasterWorld Guest from 23.20.241.155

Forum Moderators: phranque

Message Too Old, No Replies

Path to Perl on a NT Host

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

WebmasterWorld Senior Member 10+ Year Member



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)

10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



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

10+ Year Member



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)

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



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)

WebmasterWorld Senior Member 10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month