I've never heard of "unweb". I don't remember anything of that name in CGI101. I assume that it's one of the broken CGI parsers that are common in scripts written by people who learnt CGI programming by copying Matt Wright's scripts.

It's clear that the CGI parameter parsing in CGI.pm is far superior to that found in most (if not all) of these parsers. See Use CGI or die; for the details on that. What is less clear is whether or not you should use the HTML shortcut functions in CGI programs.

Whilst there are advantages to using the HTML shortcuts ("sticky" form inputs and XHTML compliance are two that spring to mind immediately) personally I don't use them very often. I would remove the presentation layer from the CGI program completely and use a templating system (like the Template Toolkit).

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg


In reply to Re: To CGI or not CGI, that is the question by davorg
in thread To CGI or not CGI, that is the question by Massyn

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.