To start with your question: The correct form is use strict;

I can't verify what you're seeing on NT at the moment, but on Win98 I get this using ActiveState's port (Build 633):

  1. use strict; works as expected and reports what it's supposed to.
  2. use Strict; shows no errors indicating that Strict.pm cannot be found, but doesn't flag any non-strict code, so it is obivously not being hooked up.

This is a bug due to the fact that filenames under Windows are not case-sentitive: the file strict.pm can be found as Strict.pm. So when Perl goes looking for Strict.pm, strict.pm is found and loaded. However, the import sub will not be run (and the hints for the Perl parser don't get set) as would happen automatically if you use strict;.

— Arien

Edit: Abigail-II said most of this and said it faster...


In reply to Re: use strict (upper or lower case) by Arien
in thread use strict (upper or lower case) by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.