In my opinion, Perl is an unbeatable tool for solving the kind of problem where I want something done quickly and effectively. Yesterday I wrote a thingy that interfaces to a LDAP database, queries mySQL and in some cases does some HTML-scraping. It took me an hour to put it all together. I can't think about doing that in C, and I believe Java would have taken much more effort anyway.

Perl is very well suited to textual analysis, finding patterns and such stuff, and you can create data structures as complex as you like in a picosecond. Try Java for that and you'll see the difference.

Perl is also an expressive programming language, meaning that there is more than just machine efficiency in what you write. You can choose to explore a problem from many different points of view, quickly; a little functional here, a little object-oriented there, twenty lines of procedural glue, it all goes. No other language I know offers the same grade of expressiveness, and this is why I personally love the language.

If you take PHP, for instance, it's ok as long as you want to create web pages, but if in the matter you have to solve some programming tasks, it's often more a nuisance than a helpful tool. Perl is (nearly) always a nice environment to work in.

Warning: Personal rant follows:
What I don't like in Perl (in Perl 5, at least) is the way the language handles object-orientation; Java/C++ have a much better and cleaner syntax, and most other languages are following it (I have seen that PHP 5 will be almost word-by-word Java-alike). I see things are bound to change with Perl 6, and I hope I'll love that as much as I like the rest of the language....


In reply to Re: perl's forte by l3nz
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.