Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

If you've been following the questions/answers posted here for any length of time at all, you will have no doubt seen many examples of problems that were fixed (or could have been avoided) if the programmer had simply put "use strict;" at the beginning.

If I recall correctly, "use strict" was introduced with perl5. There were changes in the language such that older perl4 code might break. So the only time anyone should ever NOT "use strict" is if you're running perl4 code with a perl5 interpreter, and want to be in "backwards compatibility mode".

Now, seeing as how perl5 has been in wide use for over 10 years now, and seeing how many problems could be solved and/or avoided: why can't "strict" mode be made the default?!?!

Anyone who really needs backwards compatibility (or wishes to bend the rules for a very good reason) can type something to turn strict OFF (i.e., "no strict refs", etc.)

I think this would help more than it would harm.

Has anyone else ever thought this way? Agree? Disagree?


In reply to use strict by scorpio17

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (8)
    As of 2014-08-28 14:37 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (263 votes), past polls