Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Convert delimited string into nested data structure

by blazar (Canon)
on Feb 20, 2007 at 13:00 UTC ( [id://601085]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Convert delimited string into nested data structure
in thread Convert delimited string into nested data structure

Are you suggesting that with a few modifications that I can use your code snippet to achieve my goal? Because I don't see how I can push the children onto their parents using your code (which doesn't produce the output I need).

Yes, this kind of question has been discussed before. You may also be interested in nodes referenced in that thread. Two modules, that were mentioned in the discussion and that could come useful to make "structured text" into a complex data structure are Data::Hierarchy and Data::Diver.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://601085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found