in reply to Re^3: Conditional question
in thread Conditional question

I now use warnings; instead of perl -w since Windows seems to ignore the she-bang line.


I humbly seek wisdom.

Replies are listed 'Best First'.
Re^5: Conditional question
by Corion (Patriarch) on Oct 19, 2007 at 20:36 UTC

    But Perl does not:

    C:\Projekte>type tmp.pl #!/usr/bin/perl -w use strict; my $foo; print $foo __END__ C:\Projekte>perl tmp.pl Use of uninitialized value in print at tmp.pl line 5.

      Your example behaves the same on my system as well. Based on my experience in multi-threaded win32::console, though, it seems there is some difference between -w and use warnings;. Is use warnings; the same as perl -W (capital W)? or something?


      I humbly seek wisdom.