Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by gasho (Beadle)
on Apr 17, 2006 at 14:48 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2023-03-22 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?