C is a much simpler language than Perl and much easier to learn.
Surely you must be joking.

Not at all. But remember what the C language is without its standardish libraries - some simple control structures, a handful of data types, some arithmetic operators, some bitwise operators and some boolean operators. The core language is very small. Perl's core language on the other hand is huge and contains all sorts of subtle special magic. I agree it is harder to use C than Perl, but that is not the same as learning the language.

No, it's because it's immensely easier to write tests in Perl than in C.

I admit I write C++ rather than C so I don't know how hard or otherwise it is to write tests in C. However, in C++ using easily available test frameworks it's not a lot different to write test code in C++ than it is in Perl.

The bug defect rate tends to be constant per SLOC.

That would be my first thought too. However Perl rather encourages concatenating the odd map, grep, join, split and so on together into a single succinct line - what could be written over several lines collapses to one. Therein lies the problem with SLOC and Perl exacerbates the issue by often allowing the code to be as readable in the compact single line form as in the multiple line form.


True laziness is hard work

In reply to Re^4: compiling perl scripts aka why is perl not as fast as C by GrandFather
in thread compiling perl scripts aka why is perl not as fast as C by punkish

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.