in reply to #!/usr/bin/perl -w and use warnings;

Besides the other answers, use warnings implicitly requires perl 5.6 or later. People who have to support earlier versions of perl don't use the pragma.

--
brian d foy <brian@stonehenge.com>

Replies are listed 'Best First'.
Re^2: #!/usr/bin/perl -w and use warnings;
by ghenry (Vicar) on Apr 23, 2005 at 17:30 UTC

    Have far back can you use the -w option?

    Just going to check the history files on perldoc.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!

      Perl4 had the -w switch, and back then everything fit in one manpage (man perl) so that's where you need to look.

      You can still download perl4.036 from CPAN and just look for yourself. You don't have to actually install it :)

      --
      brian d foy <brian@stonehenge.com>

        Thanks. That looks like an interesting read ;-)

        Walking the road to enlightenment... I found a penguin and a camel on the way.....
        Fancy a yourname@perl.me.uk? Just ask!!!
Re^2: #!/usr/bin/perl -w and use warnings;
by ghenry (Vicar) on Apr 23, 2005 at 19:14 UTC

    Was it introduced with Perl 5?

    I can't find any info on Perl 4, which was before my time.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!

      The -w switch was in Perl4.

      Even though it was before your time, Google still remembers it. :)

      --
      brian d foy <brian@stonehenge.com>