Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

question in Xml::Twig

by anniyan (Monk)
on Oct 28, 2005 at 15:02 UTC ( #503677=perlquestion: print w/ replies, xml ) Need Help??
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)

Comment on question in Xml::Twig
Download Code
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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://503677]
Approved by Samy_rio
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2014-12-26 18:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls