Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

(wil) Re: How do I...Fool Windows into using *nix formatted shebang

by wil (Priest)
on May 18, 2002 at 10:46 UTC ( #167485=note: print w/ replies, xml ) Need Help??


in reply to How do I...Fool Windows into using *nix formatted shebang

You shouldn't have to do this anymore with Perl for Windows, as it automatically updates the Registry, so as long as you name your files with an appropriate extension - .pl or maybe .cgi then Windows should automatically detect these as Perl scripts and just treat your shebang line as a comment.

Update: You might also have to uncomment the following line in your httpd.conf file to ensure that Apache looks up the correct location within the Windows Registry rather than refering to the shebang line.

ScriptInterpreterSource registry
Update 2: This is documented at the Apache website.

- wil


Comment on (wil) Re: How do I...Fool Windows into using *nix formatted shebang
Download Code
Re: Re: How do I...Fool Windows into using *nix formatted shebang
by S_Shrum (Pilgrim) on May 19, 2002 at 03:12 UTC

    I bow before the master!

    Oh, P.S., That worked. This works perfectly! Nice thing is that it ignores the initial shebang line so I can leave it alone for my host Linux server to deal with.

    I remember looking at this directive long ago, understanding the *general* idea, but then wondering what it was really for. This is definately a great reason; they should list this as one of the primary uses...in more words, that is.

    Thanx

    ======================
    Sean Shrum
    http://www.shrum.net

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://167485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-08-02 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls