For the same reason they don't teach quantum physics at a lower level. Nor do you get to use a 747 to get your pilot license. And your grandfather didn't take you out to sea for some shark fishing the day got your first fishing gear.

Perl is a powerful language, but only in the hands of a skilled and experienced programmer. And then only some of them.

I don't know-- I'd probably not count myself a "skilled and experienced programmer." I've taken a few classes in college, but I got turned on to perl in my work as a sysadmin-hobbyist. None of the tasks I wanted to automate were difficult; they were usually minor text transformation and redirection. Perl was great because it /was/ simple. As the camel book says, "Perl is designed to make the easy jobs easy, without making the hard jobs impossible."

For teaching simple programming, perl's great-- you don't need all the magic incantations (class HelloWorld { public static void main(String[] args) { System.out.println("Hello, world!");}}) or strange operators (cout << "Hello, world") of other languages. You don't need to fight to teach about data structures (perl arrays are arrays, queues, stacks, and so forth), since they're just /there/ and working. And then there's passing by reference vs. value, which perl largely dwims away. If you want to introduce functional programming as compared to imperative programming, perl lets you do that, too. For basic programming, I'd probably start with perl instead of Java or other similar languages. There's certainly value in teaching C++, especially when you want to start talking about lower level computer guts, but basic programming doesn't generally need/want to talk about memory allocation and other complex problems.

Steve


In reply to Re^3: Perl: friend or foe ? by Willworker
in thread Perl: friend or foe ? by MonkPaul

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.