Perl is written in C.
If you want to utilize pure speed of the processor, If you have enough time and knowledge on C you can very well code/achieve everything using C. In C you have to manage the memory(allocation/deallocation) mistakes there will often lead to SEGMENTATION FAULT.
If you want the speed of C, with lots of flexibility in using/manipulation of data structures, if you want pick-up and use third party modules, with lots and lots of support & help from community(perlmonks) then perl is best. Whatever is possible to be achieved using C is achieved using perl also. Perl manages memory for you, but still you got to be careful on using the created data structures/variables otherwise you will end up in using all the available memory, I have been using perl for 4 years now and I have never got a SEGFAULT :) .
I compared only the points that suddenly struck my mind, I think there are so many of them like this.
Good question.
Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
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.