Web Hosting Talk







View Full Version : Where is Perl located in a Windows Environment?


Sully
10-31-2001, 05:05 PM
I have install ActivePerl on my Win2K server and am trying to configure the Perl script.
On my Unix accounts, the path is: #!/usr/bin/perl, what would this equate to in a Win2K environment?
Would it be the Perl directory - "c:\perl"? Would I precede that with the "#!"?

Any help would be appreciated?

Sully

JeffH
10-31-2001, 05:38 PM
Originally posted by Sully
I have install ActivePerl on my Win2K server and am trying to configure the Perl script.
On my Unix accounts, the path is: #!/usr/bin/perl, what would this equate to in a Win2K environment?
Would it be the Perl directory - "c:\perl"? Would I precede that with the "#!"?

Any help would be appreciated?

Sully

In a windows environment you can just use #!perl because windows ignores this line. Windows only cares about what is associated with that extension (i.e. .pl or .cgi).

Also, even though windows ignores the #! line, perl will still look for switch (-w or -T) on that line.

HTH
Jeff

RackMy.com
10-31-2001, 11:33 PM
Yep, Perl for Windows does not need a path to Perl. Just make sure .pl and .cgi are set-up in IIS's app settings.