The problem doesn't really come up anymore, for me, because all my apps are rendering checkboxes using a front-end javascript library of some sort :-)
My perl controllers just deliver data as JSON, and the JS renders the form. Back when I still rendered checkboxes with Perl I'd be using Template toolkit, or Text::Xslate
Comment on Re: Marking "checkbox" html field checked