Agree whole-heartedly that strict should be on by default. A few people who use Perl only for sysadmin scripting might complain they had to type 'no strict' at the top of every program, but these people are in the minority now.

When I first started coding in Perl, i never use'd scrict (mainly because I didn't know it existed). Once I'd developed a whole lot of bad habits (like never using 'my'), it took a long time for me to break them. I think this is something that causes a lot of people to decide not to use strict - it seems like a big learning curve when you've already been using Perl without issue for years...

Backwards compatability issues could be solved... it's only going to affect people who upgrade their Perl version.. if they do that on a system that has important stuff on it, they should RTFM, and see that they have to set such and such environment variable to turn off strict, or update all their code.

In my company, Perl is seen as a lower level in the food chain than other languages (even ASP), and it's mainly because most people don't use strict. Even if they do, they don't realise the importance of it. I think Perl would be taken a lot more seriously as an application language if use strict was the default.


In reply to Re: Why isn't C<use strict> the default? by Mutant
in thread Why isn't C<use strict> the default? by BrowserUk

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.