in reply to HTML, DB, and Perl
Personnaly, when I have to do things like this, I use HTML::Template or similar packages (maybe Template-Toolkit. It makes your program file less clutered by the alternance of HTML/Perl code, and eventually making it easier to read and maintain.
<kbd>--
|
|---|