Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: XML::Simple, XMLOut() question

by samarzone (Pilgrim)
on Dec 15, 2010 at 15:04 UTC ( #877287=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::Simple, XMLOut() question
in thread XML::Simple, XMLOut() question

You need not loop. Following would suffice

$x->{user}->{favorites} = {item => $x->{user}->{favorites}};

where $x is your original structure


-- Regards - Samar

Replies are listed 'Best First'.
Re^4: XML::Simple, XMLOut() question
by duesouth (Initiate) on Dec 15, 2010 at 16:17 UTC
    Many thanks, that's done the trick.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://877287]
help
Chatterbox?
[choroba]: I returned to Rosalind after a year, and solved another 5 problems in the last week

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2017-02-27 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (390 votes). Check out past polls.