in reply to Re: Stupid If Question
in thread Stupid If Question

Not even on windows :)
#!/usr/bin/perl -- use strict; use warnings;
Get with the times, -w is dead, long live warnings :D

Replies are listed 'Best First'.
Re^3: Stupid If Question
by Marshall (Canon) on Aug 19, 2009 at 08:16 UTC
    Wrong.

    -w shebang option is alive and well at least in Perl 5.10. And yes this is supported on Windows (not the path), but the -w option just like I said.

    Update: For folks that didn't read the previous:

    #!/usr/bin/perl -w use strict;
    should be almost like a mantra on Unix or on Windows!
        Yes -w can cast a fairly "wide net".

        But I don't want code running out there that generates warnings without at least understanding what each warning means and how each warning comes about. That thinking leads to a development process that eliminates the warnings. I just haven't found a situation where a run time error didn't matter in some way.