"And I didn't teach them to use strict and warnings in the very first class, because, despite the fact that I know all about them and use them all the time, that was simply too much information."

I still remember my very first Perl "lesson". The very first thing I was told was:

"Every Perl program you ever write will contain the lines use strict; and use warnings;. Do not ask why, just accept this for now and do it".

I'm so glad I was told this, and I think that anyone that is just starting out learning Perl and is not being told this is being done a dis-service.

So I disagree with you. It is not too much information at all. It is probably one of the most vital bits of information a newcomer needs, and definitely should be included in the first lesson.

Note that I'm not advocating that you try to explain why strictures and warnings are useful, or when they could be avoided. This would definitely be too much information. People can find this out for themselves at a later stage. What's most important is to get them into good habits right from the start. Where strictures are concerned, I'd say it's a case of "Use them because I tell you to. When you've learned enough to understand why they are useful, then you can decide for yourself."

Cheers,
Darren :)


In reply to Re^2: Barewords equal zero? by McDarren
in thread Barewords equal zero? by Cody Pendant

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.