This really isn't a comment on whether one language is better then another, but how different languages are better for different tasks. Of course, it doesn't tend to focus on how many things are done with C that might by more easily accomplished in perl (or possibly vice versa, but I can't really think of any..?). Especially with something like the example given in the parent node, which smells a lot like 'homework' and lets me rant about something I always found irritating in the C class I took. Why do they always blood assign stupid text processing programs in C?! I could write the same program in like, 3 lines of perl code, but instead it takes me 400 lines of C (Granted, a large portion of it is from writing my own linked list.. but still) it was irritating, especially after having used perl for the last year or so before I took the class. It would be nice if language classes tried to focus on their strengths, rather then weaknesses.

In reply to Re: C vs. Perl by BUU
in thread C vs. Perl by podian

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.