Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
"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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-25 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found