Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Answer: How do you run a perl script without typing the extension on NT?

by wil (Priest)
on Jun 06, 2002 at 20:07 UTC ( #172341=categorized answer: print w/replies, xml ) Need Help??

Q&A > programs and processes > How do you run a perl script without typing the extension on NT? - Answer contributed by wil

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.

However, make sure that you 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
This is documented at the Apache website.

- wil

  • Comment on Answer: How do you run a perl script without typing the extension on NT?
  • Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2016-12-10 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (160 votes). Check out past polls.