in reply to Re: Ordering meta tags with HTML::Element
in thread Ordering meta tags with HTML::Element

Maybe a better convention would be to use leading whitespace to enforce the ordering:

$m_el->attr(' name',$m); $m_el->attr(' content',$meta{$m});

This way, the output would create the attribute "names" with their leading whitespace, but in the correct order. And hopefully, the receiving side won't care about the additional whitespace.