I've learned many programming languages before, during and after studying computer science at university (Basic, Pascal, C, C++, Java, Gopher, HyperTalk blah blah blah).

Perl is confusing at first because it doesn't fit into any of the boxes that traditional languages fit into, and my preconceptions of what Perl was going to be like (an advanced scripting language like awk or sed) were completely wrong.

The best thing to do to truly understand how Perl works is to read Programming Perl, 3rd Edition (O'Reilly) from cover to cover. This book is also known as the "Camel", because it has a picture of a camel on the cover.

The secret name of Perl is the pathelogically eclectic rubbish lister. The more you learn about Perl the more humorous this name becomes.

Basically Perl uses the fact that these days we have CPU time and memory to burn. It takes all the advantages of both a compiled language and an interpreted language by half-compiling the raw Perl program into a half-baked execution tree, and then immediately after that it interprets that execution tree to make the final program.

It is this half-compile, half-interpret process that you are finding confusing - but I think it is important to understand this process in all its detail, so that you can get a deeper understanding of how the perl error reporting systems and debuggers works.


In reply to Re: Re: How does Perl do it it's thing? by tomazos
in thread How does Perl do it it's thing? by bladx

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.