Preceptor has asked for the wisdom of the Perl Monks concerning the following question:
I ask your help monks - I am increasingly starting to dislike XML::Simple, as a library that actively promotes bad quality code. It's "discouraged" in its documentation.
It does pop up rather a lot on Stack Overflow. I think this is because it has "Simple" in the title, and the people using it don't realise that it's lying.
I'm of the opinion that there is simply no good reason to ever use this module.
However, I'm cognisant that I may be wrong - there may actually be reasons to use this module, and that's why I need your help.
I'm seeking examples where XML::Simple is a superior choice to either XML::Twig or XML::LibXML. Ideally on the basis of cleaner, nicer code. But I will accept performance or memory footprint arguments. (And if you can give me an example where it's better than _both_ then I will be particularly impressed)
My starter for 10 - if you're stuck with ActiveState, and can't install Strawberry - it's quite hard to get XML::LibXML installed and running. (Although I still think XML::Twig would be better there, even so).
With reference to: Stack Overflow: Why is XML::Simple "discouraged"?
|
|---|