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

Re: Style, style, style

by cLive ;-) (Prior)
on Sep 08, 2002 at 15:32 UTC ( #196035=note: print w/replies, xml ) Need Help??


in reply to Style, style, style

-w or use warnings;?

Has my memory completely left me, or is -w ignored under NT, hence introduction if pragma?

.02

cLive ;-)

--
seek(JOB,$$LA,0);

Replies are listed 'Best First'.
Re^2: Style, style, style
by Aristotle (Chancellor) on Sep 08, 2002 at 17:24 UTC
    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.

      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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2021-06-14 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (62 votes). Check out past polls.

    Notices?