anniyan has asked for the wisdom of the Perl Monks concerning the following question:

Yesterday i asked some question in xml::Twig module and i got clarification and i learned more from those replies. Today i have another question. It is just related to my yesterday's post. Is it possible to get the string back after replacing, to another variable without hash.

When i did the following i am getting hash value as ouptut.

$str = $twig->safe_parse($str);

I want to store that output in another variable after parsing. Is it possible? If so how?

Regards,
Anniyan
(CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)

Replies are listed 'Best First'.
Re: question in Xml::Twig
by mirod (Canon) on Oct 28, 2005 at 15:24 UTC

    I am not sure I really understand the question. $twig->safe_parse($str) is a twig object, not a string. If you want a string (the xml for the document in the twig) then you need $twig->sprint. Does this answer your question?