On Mon, Jan 10, 2011 at 11:07 AM, Shawn H Corey <shawnhco...@gmail.com> wrote: > It doesn't. At least, it doesn't if you start the script from Windows. > What Windows does is look up the extension, *.pl, in the Registry and > launch the program associated with it. When it starts, perl will check the > first line for any switches (options in UNIX talk) and sets them. > > However, some web servers read the the shebang line and executes what it > says. So, you should change any Perl CGIs to point to the perl program.
It isn't used to determine the interpreter on Windows, but it is still apparently always "examined" for command line options, regardless of platform. perldoc perlrun: > The #! line is always examined for switches as the line is being parsed. > Thus, if you’re on a machine that allows only one argument with the #! > line, or worse, doesn’t even recognize the #! line, you still can get > consistent switch behavior regardless of how Perl was invoked, even if > -x was used to find the beginning of the program. I guess see `perldoc perlrun` for the full story. -- Brandon McCaig <http://www.bamccaig.com> <bamcc...@gmail.com> V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/