Hi l.frankline, use $data = $twig->sprint; instead of $data = $twig-print;
Anyway $data = $twig-print; is typo. XML::Twig module description as:
=item sprint Return the text of the whole document associated with the twig. To be used only AFTER the parse.
=item sprint ($elt, $optional_no_enclosing_tag) Return the xml string for an entire element, including the tags. If the optional second argument is true then only the string inside the element is returned (the start and end tag for $elt are not). The text is XML-escaped: base entities (& and < in text, & < and " in attribute values) are turned into entities.
Regards,
Velusamy R.
In reply to Re: XML::Twig Question
by Samy_rio
in thread XML::Twig Question
by l.frankline
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |