in reply to Re: Style, style, style
in thread Style, style, style

It is ignored when on the shebang since Win doesn't have the shebang notion. You have to put it in the .pl filetype association in the registry. CGI scripts run by Apache don't have such a problem since the daemon will emulate the shebang notion on Win variants.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^2: Style, style, style
by tlhf (Scribe) on Sep 08, 2002 at 18:02 UTC
    I can't talk for all perl builds on Windows, but my Activestate 5.6.1 (build 633) + Win2k does translate -w on the shebang to use warnings. It doesn't do it via using the shebang afaik, but just by using some magic on it.

    //: C:\MyScript.pl #!/usr/bin/perl -w $x = "foo"; __END__ output: Name "main::x" used only once: possible typo at scratch.pl line 2 ///~ C:\> MyScript

    tlhf
    xxx