Perhaps some pointed analogies would help explain the reason I (and I assume most everybody else) like to code with strictures on as much as possible:

While all these things may or may not necessarily make sense, and might seem rather extreme compared to a silly mistyped variable name, I think they illustrate the point. Using strict is not about what happens when everything goes right, but about what happens when something goes wrong. It's not an admission of incompetence or laziness, but a safety net.

Mistakes happen. To say otherwise is simply delusional. The strict pragma helps catch a large amount of common mistakes that might otherwise go unnoticed, or perhaps less noticed, without it. Do not let me try to change your habits for how you write your own code for your own use, but if I ever took over a project without appropriate application of strictures, I would certainly have many choice words for the previous author.


In reply to Re: to strict or not to strict by revdiablo
in thread to strict or not to strict by castaway

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.