in reply to To use XML or not to use XML
First one important point: you don't HAVE to use XML.
Why would you use it, and is it really that much of an improvement over other formats:
<config> <server name="server1"> <application name="app1"> <params> <!-- note the 2 params --> <param>p1</param> <param>p2</param> </params> </application> </server> </config>
A couple of things that can be annoying though:
Finally, as others have suggested, XML::Simple is probably the ideal module for you. Write your config file, load it using XMLin, dump it ( or use the debugger) to figure out what's in the data structure, and you should be ok. Read the docs though, as, to quote them "in fact as each release of XML::Simple adds more options, the module's claim to the name 'Simple' becomes more tenuous".
|
|---|