The reason people choose XML::Simple over XML::LibXML is not the cleanliness of the code when already written, but rather the expected time to learn either so that you can write anything. I can't imagine anyone not feeling intimidated by the XML::LibXML docs. I just reread the main docs and, after many years of using Perl and being the author of one of the other modules already mentioned, I have no idea whatsoever how to use it or where to start looking.
I know I'm supposed to binmode() the filehandles I pass it, I know it supports threads, I know how to print the module's version and that's it.
I'm not surprised beginners do not use that module, I'm surprised anyone does.
I don't think there are reasons to use XML::Simple (see Simpler than XML::Simple), but except in case you already have code using libxml in some other language and just need to transform it into Perl, I do not see a reason to learn and use XML::LibXML either.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re: Examples where XML::Simple is the optimal choice?
by Jenda
in thread Examples where XML::Simple is the optimal choice?
by Preceptor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |