in reply to Re^5: Formatting in XML::Twig->print()
in thread Formatting in XML::Twig->print()
I think it is because you print the root element of the document ($parser->root->print(\*PF)), instead of simply printing the document ($parser->print(\*PF)).
In Section
Seekers of Perl Wisdom