(TIMTOWTDI!)
Personally I prefer
CGI::Lite over
CGI. For me I find the interface much cleaner than
CGI, and it's drastically faster, not having to load thirteen million subroutines for doing every possible thing someone might conceive doing with cgi/html. For example to get your form data you just do:
my $c = new CGI::Lite;
my %post = $c->parse_form_data('POST');
or to get cookies you just call parse_cookies(). But this is all the module does, just parse forms and cookies, it doesn't bother with all the bastardized html functions (Which I deeply, deeply hate, but thats another story) and other assorted nonsense
CGI comes with.
As to html, I vastly prefer using
HTML::Template for all of my html needs. And another advantage to both of these modules is that they're "pure perl" meaning all you would have to do is download cgi-lite.tar.gz, make a folder on your website called 'CGI' and then upload the file called 'Lite.pm' to that folder, then presto, you can instantly
use CGI::Lite;.
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.