in reply to Quick CGI Question

perl -MCGI=:standard -e'print p({-id=>"foo"},"Bar")' <p id="foo">Bar</p>

You can even make up new attributes, and CGI.pm will try to do the right thing.

After Compline,
Zaxo