Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How to create HASH with multiple values per Key

by gasho (Beadle)
on Apr 17, 2006 at 14:48 UTC ( [id://543829]=note: print w/replies, xml ) Need Help??


in reply to Re: How to create HASH with multiple values per Key
in thread How to create HASH with multiple values per Key

I am looping through a file that contains both Objects and Properties and storing Objects in @Objects and Properties of particular Object in @Properties e.g of the file
<AllObjectsProperties> <Object name="O1"/> <Properties> <Prop name="P1"/> <Prop name="P2"/> <Prop name="P3"/> </Properties> <Object name="O2"/> <Properties> <Prop name="S1"/> <Prop name="S2"/> <Prop name="S3"/> </Properties> </AllObjectsProperties>

Replies are listed 'Best First'.
Re^3: How to create HASH with multiple values per Key
by davidrw (Prior) on Apr 17, 2006 at 14:57 UTC
    XML::Simple or one of the other XML modules may suit your needs and save you the parsing/looping/data structure creation.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-25 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found