in reply to Quick CGI Question

Use a hash ref as the first arg. Any keys will be used as attributes:
div({id=>'div1'}, "text"); <div id="div1">text</div> a({href=>'http://perlmonks.org', id=>'pmlink'}, "Perlmonks.org"); <a href="http://perlmonks.org" id="pmlink">Perlmonks.org</a>