Perl also seems to be, as brought to my attention by the Sams Learn Perl in 24 Hours, an excellent scripting language for prototyping a job that will eventally be compiled in something like C, especially with it's syntax being close to that of C's.

If you're truely "thinking" in Perl, you'll find that a lot of your code won't map easily into a C equivilent. And if you're not thinking in Perl, you're probably not taking full advantage of the language. There are those who write Perl, and those who write in interpreted C.

Now, that's fine if you're fully intending to prototype in Perl and then move to C (you just avoid using Perl idioms), but if you're humming along in Perl and suddenly the boss comes in and wants it redone in C, you might have a problem.

IMHO, you shouldn't make a C translation an option until you have proven that you need the speed benefit. If Perl isn't a good fit for your task, use another language, but don't automatically go into C.

/me does his part to keep the world safe from buffer overflows

----
: () { :|:& };:

Note: All code is untested, unless otherwise stated


In reply to Re: Re: perl's forte by hardburn
in thread perl's forte by kiat

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.