Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wubs the SERVER!!

Status
Not open for further replies.

VspecGTR3

Technical User
Feb 3, 2003
62
0
0
US
i know when you on a unix server u put #! path/to/perl on top of script but what is your serer is on windows how would u do that?
 
AFAIK (and I stand to be corrected) on a windows box its down to the file associations.

I'm testing perl scripts on WinXP, running Xitami WS, and I don't have a directory even remotely resembling usr/bin/perl, but it works

Once Perl is correctly installed on Win(whatever) the file associations take over - IIS, now that could be a different matter

HTH
 
so on your script u include it (usr/bin/perl) not by force of habbit?
 
Hi guys,

If you are using Apache, it all depends on the following line:

ScriptInterpreterSource registry

If this line is commented, then you need to use the actual path that perl is installed to the same as you do on a *nix box.

If that line is uncommented, then the registry handles the paths and you don't need the shebang line at all.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top