Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Examples where XML::Simple is the optimal choice?

by Jenda (Abbot)
on Oct 24, 2015 at 23:34 UTC ( [id://1145867]=note: print w/replies, xml ) Need Help??


in reply to Examples where XML::Simple is the optimal choice?

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.

  • Comment on Re: Examples where XML::Simple is the optimal choice?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145867]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-23 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found