Hi guys,
Just a quick ques, because, though I know this is a perl forum, well ..., I've always thought c-programmer and perl-programmer relations are probably very amiable ..., with alot of folks doing both, so I thought ..., (and it's probably already been asked), I thought I'd ask ... whether there are some very rough guidelines for choosing to write up something in Perl or in C?
My main rule of thumb was: if dealing with strings/text: go for Perl. If numbers? C. And, indeed, right now, I'm dealing with matrices of numbers, and so, have been using C.
However, I have to say, that the stdlib functions, fseek and its brothers, are syntactically verbose -imho-, and not so powerful either.
There is the option of, let's say, doing preprocessing in perl and number crunching in c, but I'd prefer all in one makefile (I'm assuming you can't have one makefile for both), so it's either one or the other.
So I was wondering ... has anybody any broad and brief guidelines of when to choose between
the glory that is Perl, the grandeur that is C? (excuse me, Edgar Allan :-)).
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.