in reply to Re: use Strict: a rigorous way to break my command line variables?
in thread use Strict: a rigorous way to break my command line variables?

Curiously, this code runs fine when I try it on a Mac (OSX) under perl 5.8.6, when either "use strict;" or "use Strict" is added at the top (with or without "use warnings;" before it).
  • Comment on Re^2: use Strict: a rigorous way to break my command line variables?

Replies are listed 'Best First'.
Re^3: use Strict: a rigorous way to break my command line variables?
by tilly (Archbishop) on Aug 09, 2006 at 02:47 UTC
    I assumed that the OP had not included all of the code necessary to generate the error. Add more code that loads something that loads the other one. Then you'll get the warning.

    Also try use Strict; then try doing something that strict is not supposed to allow. It will be allowed. It should not be.

      Also try use Strict; then try doing something that strict is not supposed to allow. It will be allowed. It should not be.

      Confirmed. As you indicate, while "use Strict;" causes neither a warning nor an error, it does nothing to protect you from the things that "use strict;" does.