in reply to Re: How do you get around the lexical scoping of use pragmas?
in thread How do you get around the lexical scoping of use pragmas?

Not a bug, but a very good case can be made for having strictures enabled by default. One has only to notice that about 30% of the "why doesn't this work" questions in SoPW would have been caught by OP if strictures had been included in OP's code to see that that is a good idea.


DWIM is Perl's answer to Gödel
  • Comment on Re^2: How do you get around the lexical scoping of use pragmas?

Replies are listed 'Best First'.
Re^3: How do you get around the lexical scoping of use pragmas?
by apotheon (Deacon) on Aug 27, 2006 at 01:53 UTC

    There are a number of things I'd like to see done differently by default in Perl, including the strict pragma being on by default (though I'm not so sure about warnings) — and also default lexical scope so that I don't have to use my() all the time, and so that autovivification would create lexically scoped variables.

    print substr("Just another Perl hacker", 0, -2);
    - apotheon
    CopyWrite Chad Perrin