I'd recommend HTML::Template and its ilk.

Rather than serving the web pages as usual, but allowing big chunks of programming inside them (or, even worse, makng you put chunks of HTML inside your perl), HTML::Template has you create what looks like a plain HMTL file, but with a few special tags in it. Mostly just variable values, with a few rudimentary control structures thrown in. You hand HTML::Template the template, and the values with which to fill in the blanks, and your finished web page comes out the other end.

(up on my soapbox)
This is the way things should be. Separate design and content -- in this case the code is the content. These boundaries let the approrpiate experts do their own jobs without having to try and learn too much of someone else's, and without tripping over each other editing the same files. It makes life much easier down the road when either the code or the presentation has to be converted to something new. It even works for you in the area of code reuse. Once you've got this nice web-based application, you can easily reuse most of that code -- virtually untouched, if you've been careful -- to function with a screen-based interface or a batch processing system or whatever someone thinks up next, just by modifying the input and output bits on the edges.


In reply to Re: Emberl anyone??? by Cubes
in thread Emberl anyone??? by costas

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.