http://qs321.pair.com?node_id=1053205


in reply to Sort xml nodes by schema

Stop using XML::Simple; it's not an appropriate module for your task - even the XML::Simple documentation tells you that.

In my experience, XML::LibXML is the best general-purpose XML module for Perl.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name