in my experience (limited though it is) using CGI.pm is harder to use and the resulting HTML is harder to read. let me explain this. i don't like having to embed some tags three or four or more levels deep. just my preference, i know. as for the reading... make sure you add in newlines yourself in the outputted HTML or you'll have lines of HTML that stretch on endlessly.
CGI.pm does have some benefits when outputting HTML. it will automatically close all tags, making it unnecessary to worry about that.
in general, i rarely use it to output HTML (except the header, start_html and end_html methods) and stick to its cookie and parameter methods. i suppose if you got used to coding it and were able to turn the outputted HTML into a easily readable format it would be worthwhile. but i don't do enough CGI programming to do that.
more: i've never used CGI::pretty so i can't comment on that. as for the speed factor... my guess is that CGI.pm would be a little slower, but i'm not certain.
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.