Massyn has asked for the wisdom of the Perl Monks concerning the following question:
#!/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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: To CGI or not CGI, that is the question
by tachyon (Chancellor) on Mar 12, 2003 at 11:01 UTC | |
Re: To CGI or not CGI, that is the question
by davorg (Chancellor) on Mar 12, 2003 at 11:06 UTC | |
Re: To CGI or not CGI, that is the question
by derby (Abbot) on Mar 12, 2003 at 12:52 UTC | |
Re: To CGI or not CGI, that is the question
by tadman (Prior) on Mar 12, 2003 at 12:38 UTC | |
by davorg (Chancellor) on Mar 12, 2003 at 12:59 UTC |