Now this may appear to be a weird question, but back when I started learning Perl in 2000 I found myself using it primarily for CGI scripts.
At first, I did use OOP CGI until I quickly realized it was a major pain in the ( | ). But I always
use CGI qw/:standard/;
print header, start_html();
And it just hit me: is there a reason WHY I am doing this? I process forms all the time just by calling params and url_params, which I doubt come from CGI (or do they?). If not, can you see any specific reason to use CGI.pm instead of typing out the headers manually?
Sure, it may save a few lines of code for the header, but if it's not necessary it would be nice to get rid of the dead weight.
Let me know what your thoughts are and whether or not there's actually a reason to use CGI.pm if you're not using it with objects.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.