What are your goals? If you are writing stuff on your own, for your own use, that won't change very often, then sure... use CGI. If you want it to be more maintainable, to separate content from function, then you should really should move the content out of the cgi. That is move the html into separate files.
There are many ways to do this, but this allows you to modify the html without introducing errors into your cgi. Beyond this, imagine you hire somebody to do the graphic design for you, you can hand them ugly HTML, and they can make it look as pretty as you like.
To go a step further, you might consider a templating system that allows for overriding content. This would allow you to use your same cgi's in another language or would allow you to let users choose colors or format.
So, what would you like. In the long run, I think you would be happier with separate content files that can have their own revision history.
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.