I've been using HTML::Mason to do embedded web work a la PHP for a while now and it rocks -- you might want to check that out.

I've even written a tutorial, which will at least provide a simple picture, and there are links to more info (eg, the first edition of an O'Reilly book is now free on-line):

Intro to Embedded Perl Using Mason

The example demo in the tutorial is a small on-line site that uses an SQL database.

Amazon uses perl instead of php.

The only potential drawback is you need a server running apache mod_perl. But here's an example advantage: I have a web based chat that uses a separate, stand-alone server for some processing. The server is written in perl, so it and the embedded web page stuff can share the same module for functions like verification, etc. etc.

Then you can forget php and dedicate your mind to perl :)

In reply to Re: MySQL Book and PHP vs Perl by halfcountplus
in thread MySQL Book and PHP vs Perl by bluethundr

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.