Subject: | Modernize XHTML output in SYNOPSIS |
The example in the CGI.pm SYNOPSIS almost creates a valid XHTML
document. Almost, it's only a 'print end_html;' at the end missing.
Then I suggest to replace the old-fashioned (and probably wrong)
"texta", "textb", p coding style by using <div>s: div("texta", "textb").
So the generation of the form should probably look like this:
div("What's your name? ",textfield('name')),
div("What's the combination?"),
div(checkbox_group(-name=>'words',
-values=>['eenie','meenie','minie','moe'],
-defaults=>['eenie','minie'])),
div("What's your favorite color? ",
popup_menu(-name=>'color',
-values=>['red','green','blue','chartreuse'])),
Regards,
Slaven