in reply to Twig Question: Create a new XML doc using twig?
Unless I'm missing the point, all you need to do is add the filehandle reference to your print statement.
Update:Removed quotes per GrandFather's comments. My apologies on the typo.
To print to two files, do this with two filehandles.$root->print($file_handle);
Update:Removed quotes per GrandFather's comments. My apologies on the typo.
In Section
Seekers of Perl Wisdom