As is almost always the case with such questions, the answer depends on your problem set and the tools you have available.

It also depends heavily on your definition of "useful." Sometimes the Q&D script (emphasis on the "Quick" part of that phrase) that solves a problem is more "useful" and even more elegant than the C (in all references, consider this inclusive: C and C++) code which required so many more programmer hours to develop that the deadline passed.

Nonetheless, applications that require heavy computation are likely to benefit from use of C (if they're not one-offs; IOW, if one expects them to be used repeatedly and often).

But given the wealth of Perl's underpinnings and the multitude of proven modules, one should not leap to utilize C. Like the hammer or screwdriver, a programming language has limits on its applicability: using a screwdriver to pound in a nail is sometimes possible, but unwise. So too is using a (claw-) hammer to remove a screw.


In reply to Re: Combine Perl with C++ or C by ww
in thread Combine Perl with C++ or C by maverick_anew

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.