space_monk has asked for the wisdom of the Perl Monks concerning the following question:

Monks, Nuns and Monkees,

How do I get to output the correct DOCTYPE (and any other HTML 5 specific content) for HTML5. Using the default_dtd doesn't seem to do it. Do I have to roll my own page headers?

I apologise if this question has been asked before, I feel it's so obvious it must have been. My only excuse for putting this question forward is that it's a Friday afternoon, I'm not feeling well and want to go home ;'(

Update: Thanks for all your suggestions. I'm not in a position to install libaries into the proper Perl installation, but I can probably slip one in as a local installation and will be trying this instead...

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)