Those topics are far too advanced to start teaching children a language.

"Perl Baby-Talk" is perfectly fine. But speaking of "too advanced": the old ampersand-style function calling is not necessary, nor is predeclaring subroutines, in fact, sub &TellPrice(); is wrong and throws an error - the oldest Perl I have on hand is 5.6.2, so I'm not sure if it ever was legal.

As for strict, warnings, and diagnostics, the code samples on that page include errors that would have been caught by them. $ShouldContinue == "n" would have been caught by warnings, and the following incorrect code from the page would have been caught by strict (and hinted at by warnings):

sub ReadLine() { $UserInput = <>; chomp $userinput; return $userinput; }
that would confuse and bore and ruin the child's ability and desire to learn

First option: Three lines of boilerplate, a my in front of variables, and that gets you error messages like: did you forget to declare "my $userinput"?

Second option: Figure out the bug all on your own. I personally think this is the one that would confuse and frustrate a child - just like it's frustrated quite a few adult programmers...

Minor updates to wording.


In reply to Re^4: Beginner Recommendations by haukex
in thread Beginner Recommendations by Ookma-Kyi

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.