i have a site.. i do not want to make it all dynamic... but there some places in the html file that i would like to be dynamic...

Although you are inspecific, the traditional and, I suspect, most simple solution would be to use Server Side Includes to integrate elements of dynamic content into an otherwise static HTML page. The majority of the examples you will find of using this technique (beyond the super-simple) will, no doubt, use Perl to generate content.

Having said that, you will receive as many recommendations as you care to solicit for web content generation techniques; I think most people work out what best serves their needs through trial and error. For more demanding projects, we've been using the Template Toolkit for a couple of years now with great results.

MB

In reply to Re: perl code in html files... by matthewb
in thread perl code in html files... by noname00

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.