Welcome to the Monastery | |
PerlMonks |
Re: XML::Twig Questionby Samy_rio (Vicar) |
on Apr 22, 2006 at 06:56 UTC ( [id://545025]=note: print w/replies, xml ) | Need Help?? |
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, eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';
In Section
Seekers of Perl Wisdom
|
|