#!/fellow/monks.pl

use cgi or die is a common statement made around the monestary. The use of "unweb" in CGI applications have been rejected in most discussions.

I started my perl, and basically my CGI programming days on Redhat 4.2, after following the tutorials on CGI101. The tutorials on CGI101 however never used cgi.pm for any CGI work, but rather use procedures like unweb to do the job.

In a way my personal programming style developed over the years to hard code as much as possible. I understand (to some extend) why cgi.pm has to be used.

My question really is to what extend do I have to convert my applications to utilise cgi.pm? I looked at it and saw that my unweb function could be converted to use cgi.pm fairly easily, so that bit's cool, but what about the other procedures available in cgi.pm? Should I use print "<h1>Hello</h1>"; or should I use the cgi.pm function to do it? I really do not want to go and change entire applications, however, I do want to make the necessary changes to ensure that all security areas are covered.

Thank you wise monks!!

#!/massyn.pl The early worm gets caught by the bird.


In reply to 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.