Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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
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?

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 imbibing at the Monastery: (7)
As of 2015-07-31 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls