Perl is a sophisticated interpreted language providing rich facilities for data manipulation out of the box. Many people refer to it as a "high level" language for that reason and because it uses reference counted memory management. It has inherited large components of its syntax from C and large chunks of its richness from several other languages. It provides dynamically typed scalar variables, dynamically sized arrays of scalars, hashes of scalars keyed by strings and a variety of more exotic scalar types. Perl does not provide pointers, but scalars may be assigned references to various entities (including arrays, hashes and subroutines). Perl is written in C and is relatively easily ported to new systems. Perl applications can be highly portable including between different operating systems.

C is a simple compiled language providing a small number of fundamental types and no I/O at all. Much of C's utility is provided by a fairly standard set of functions supplied in the C Runtime Library (CRL) along with the compiler. C provides a rich set of arithmetic and logic operators (which Perl inherits). C does not provide any dynamic data structures (not even a string type), although the CRL provides ways of allocating and disposing chunks of memory under programmer control. C provides various integer types, fixed size arrays, structs, unions and pointers. C is easy to implement on new systems and is thus often the language of choice for bootstrapping new systems. C applications can be highly portable but tend to be more affected by CRL implementation details than Perl.


True laziness is hard work

In reply to Re: Perl vs C by GrandFather
in thread Perl vs C by santhosh_89

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.