On 11-01-04 02:56 PM, Chap Harrison wrote:
Although I don't know if this works on Windows, I notice that nobody has 
mentioned...

#!/usr/bin/env perl

No, it doesn't. In the Windows Registry, the *.pl extension is linked to the perl program. Double-clicking on a *.pl file will run perl with it as an argument. It ignores the shebang line.

Except...

Some web servers read the shebang line to determine what program to run a CGI with. If you are running a server in Windows, make sure the shebang line of your CGIs points to a valid program.

Example:

!#C:\PERL\BIN\PERL.EXE


--
Just my 0.00000002 million dollars worth,
  Shawn

Confusion is the first step of understanding.

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to