Which is the best method for parsing Mac property lists with Perl? I'm trying to write a script that will parse plists containing various arguments, including some nested within layers of containers (arrays in dictionaries, or dictionaries in dictionaries). As far as I can tell, there 's a few options:
- Mac:ropertyList module on CPAN. However, it's quite low-level and this warning gives me pause:
- I have the option to convert the plists into another format, so I'm also considering using an XML parser module, as well. I'm not sure which would be the best in this situation.
- I've also read that that plists can be converted into JSON in OS X 10.7, so if there exists good Perl libraries for parsing JSON, I'm open to that too, as long as it isn't too much of a headache dealing with nested entries.