in reply to Common uses of "use"

strict and warnings were pretty much my mainstay since Perl5 was introduced.

use feature got a bit of look in while on 5.10 but I didn't use that for very long.

use 5.12.x has an an implicit use strict (actually, any version > 5.11) and includes all the features so now I just use:

use 5.12.0; use warnings;

-- Ken

Replies are listed 'Best First'.
Re^2: Common uses of "use" (5.0?)
by tye (Sage) on Oct 27, 2010 at 13:48 UTC
    strict and warnings were pretty much my mainstay since Perl5 was introduced.

    Hard for that to actually have been the case since warnings.pm wasn't invented until Perl 5.006.

    - tye        

      I have been adding use warnings; to the top of my code as a standard practice for about a decade.

      My post was not intended as some sort of definitive historical commentary.

      To head off any similar comments regarding the strict pragma: perlhist shows the first Perl5 as 5.000alpha1 1993-Jul-31. I make no claims that I used that specific version nor that the strict pragma was available in that version.

      I'm reasonably certain that "use" was introduced in a Perl5 version so I wouldn't have "use"d anything in any Perl version prior to that.

      -- Ken

        glitchmr@strawberry ~> corelist strict strict was first released with perl 5 glitchmr@strawberry ~> corelist warnings warnings was first released with perl v5.6.0