catfish1116 has asked for the wisdom of the Perl Monks concerning the following question:

What version of Perl has the XML module? Currently I am on 5.12 and when I run perldoc XML, I get a response that there is no XML documentation. TIA The Catfish

Replies are listed 'Best First'.
Re: Easy XML question
by stevieb (Canon) on Dec 12, 2019 at 16:04 UTC

    Which XML module?

    I'm not so certain that there have ever been any XML distributions in core (I could very well be wrong though).

    Just install whatever you want from the CPAN: cpanm XML::LibXML for example.

    Update: To check if a module is included with a version of Perl, use the corelist command. For example (this is on a 5.26.1 instance):

    $ corelist XML::LibXML Data for 2017-09-22 XML::LibXML was not in CORE (or so I think)

      The only XML modules in core are POD to XML translators, which from previous posts is likely not what our fishy friend is after.

      However, the venerable XML::LibXML which you mentioned is now at version 2.0201 and this is declared to run on any perl from 5.8.1 upwards, so will surely suffice for most users.

Re: Easy XML question
by marto (Cardinal) on Dec 12, 2019 at 18:55 UTC

    You've asked a couple of XML parsing questions recently, with some recommendations about modules to achieve this. Perl 5.12 was released in 2010. You should consider installing your own perl and leaving the system perl alone, freeing you to install modules (see previous responses you have on this subject).