I don't give LOC:FP much weigth. Sure, it's nice that Perl has a possible low LOC:FP, but take that to the extreme, we'd all be golfing all the time.

In many cases, given various ways of handling a small task (a "function point" for instance) the clearest solution is often the most wanted. And that can easily take two or three times as many lines as the shortest.

The ratio matters because research has shown that the cost of a single line of code remains more or less constant regardless of what language you use.
I'm not so sure about that. I write both Perl and C code for my living, although I write far more Perl than C. I've been programming Perl for over 10 years, and C for over 15. My Perl programs use less lines of code than my C programs, for doing similar tasks. But I tinker with my written Perl much more than with C. With C, there's often one obvious way, a standard idiom, or when it's written, it's not worthwhile to redo it. But with Perl, there's always yet another way. There's always the itch to change a few lines, to make it just a tad bit better.

In reply to Re^4: Perl vs. Compilable Language by Anonymous Monk
in thread Perl vs. Compilable Language by jpk236

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.