I am just repeating comments I made in chatter.

Some of what it seems you had interpreted as dislike of C is not. C is a great portable assembly language. Perl resembles C in many ways, and it is easy to program Perl as if it was C.

However programming Perl as if it was C gives you all of the disadvantages of both languages. C forces you to manage a lot of low-level stuff and gives you back speed. If you try that in Perl you will write slow Perl with bug counts similar to C code. This is not good.

The classic example is the C-style for loop versus the Perl-style foreach loop. When you code in Perl style you eliminate the very common off-by-one error, you write less code, and it will run faster. And since what you write is very directly what you mean, it is easier to read as well.

So while I have nothing against C, I have a lot against people coding Perl as if it was C. In fact I think that as soon as they work on that habit they will find that their Perl has improved a lot.

When in Rome...


In reply to Re (tilly) 1: Perlmonk Oedipus Complex? by tilly
in thread Perlmonk Oedipus Complex? by Sherlock

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.