Hi fauria,

I've used both for developing websites, though I'm no expert at either.

I started with Perl in around 2001 and I'm still using it for web stuff. I explored recently with using PHP.

I find that my experience with PHP is rather like my experience with Perl at the beginning, when I tended to freely mix code and html. I only know PHP superficially, so maybe that's why I haven't found a more elegant way to separate the logic from the presentation.

For small sites (a couple of static pages with limited interactive features), I would go with PHP. PHP is rather like Javascript, so it makes adding logic to the html page much easier.

For a larger web project, Perl will still be my choice of programming language. I find that I'm more organised when coding in Perl. Besides, I'm familiar with using a number of very useful modules such as EncryptForm, DBI and HTML::Template, so it makes sense to tap on that knowledge.


In reply to Re: "Perl is the Cobol of the WWW" by kiat
in thread "Perl is the Cobol of the WWW" by fauria

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.