Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^4: Behaviour of parsed XML

by cavac (Curate)
on Feb 28, 2020 at 14:35 UTC ( #11113541=note: print w/replies, xml ) Need Help??

in reply to Re^3: Behaviour of parsed XML
in thread Behaviour of parsed XML

Well, that really depends on what you are trying to do. I'm using XML::Simple as my config parser for most of my projects reliably for over a decade.

Would i use XML::Simple to work with Wikipedia exports? Heck no, that would be a major pain.

Would i use XML::LibXML to parse a simple config file? Heck no, this would be total overkill and would waste a lot of developer time.

The right tool for the right job. You know, TIMTOWTDI

perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

Replies are listed 'Best First'.
Re^5: Behaviour of parsed XML
by hippo (Chancellor) on Feb 28, 2020 at 14:49 UTC

    I hear you and in general I agree with you. However, in this specific case I will beg to differ. That's because in the synopsis for XML::Simple itself the author states:


    Those are his all-caps, not mine. Further in the STATUS OF THIS MODULE section he goes on to say

    The use of this module in new code is strongly discouraged.

    which again is his emphasis, not mine. Since he wrote the module he knows what he's talking about and I'm inclined to take him at his word. YMMV of course.

Re^5: Behaviour of parsed XML
by Jenda (Abbot) on Feb 28, 2020 at 17:12 UTC

    If XML::Simple and XML::LibXML were the only options, I would agree with you, but they are not. It's like choosing between a plastic kids shovel and a hundred ton strip mine excavator when a short trip to the local Home Depot can get you a real shovel that works the same way but better than your plastic one.

    Please see Simpler than XML::Simple.

    1984 was supposed to be a warning,
    not a manual!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2021-01-25 08:29 GMT
Find Nodes?
    Voting Booth?