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

It's apparently never come up for me in nearly two decades of using Perl -- two questions:

  1. How do I determine if a module suggested to me is Core?
  2. Where do I get a list of Core modules for a given Perl release?

A reasonable alternative to the first one, of course, is to simply write a test script and see if it complains; however, this technically only means it came with my distribution, and is not a foolproof indicator of "Coreness".

I ask because I followed a link for Sub::Install thinking it might lead to a neat way to modularize and make dynamically loadable code; saw the version as 0.9xxx and thought, "Hmm, I wonder if this is Core".

I then compared it to File::Findand did notice a few subtle differences in the way the bread crumb links at the top were assembled; but rather than reverse engineer and guess at the bits, I thought I'd see if there was a more authoritative reference someplace.

Update:

I did use Super Search, but, typical of my first efforts to find things with search engines, I came up with a bunch of links that didn't seem to answer the questions. Apparently, my Search-Fu is not strong.

Replies are listed 'Best First'.
Re: How To Identify or List Core Modules
by choroba (Cardinal) on Jun 23, 2015 at 13:10 UTC
    Obvious answer to 1: corelist.
    corelist Time::Piece

    Obvious answer to 2: corelist.

    corelist -v 5.8.8
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: How To Identify or List Core Modules
by Corion (Patriarch) on Jun 23, 2015 at 13:08 UTC
Re: How To Identify or List Core Modules
by marinersk (Priest) on Jun 23, 2015 at 13:12 UTC

    Thank you both. :-)

    Update:

    I suppose the question I should have also asked is: How should I have been able to answer that question for myself? I've never taken a formal class on Perl. Was shown enough to get started, asked a few stupid questions, got the hang of it, started programming Perl less like a Cprogrammer over time, and suddenly more than a decade zipped by. :-)

      At the risk of seeming churlish, may I ask if you tried a search of any kind? UPDATE: I see that you did try searching. In my experience the more natural you can make your query, the more relevant the results. For example, I tried this on Google:

      Which are the core Perl modules?

      About 866,000 results (0.29 seconds) 
      Search Results
        Core modules (A) - perldoc.perl.org
          perldoc.perl.org/index-modules-A.html
            Perl Documentation for modules that form part of the standard distribution of perl.
      
      Core modules (C) - perldoc.perl.org
        perldoc.perl.org/index-modules-C.html
          Perl Core modules (C) ... CPAN - query, download and build perl modules from CPAN sites; CPAN::Debug - internal debugging for CPAN.pm; CPAN::Distroprefs ...
      
      Core modules (H) - perldoc.perl.org
        perldoc.perl.org/index-modules-H.html
          Perl Core modules (H). Perl 5 version 20.1 documentation. Go to top ... perldoc.perl.org - Official documentation for the Perl programming language. 
      
      Core modules (T) - perldoc.perl.org
        perldoc.perl.org/5.8.9/index-modules-T.html
          Perl Home > Core modules (T) ... screen output using ANSI escape sequences; Term::Cap - Perl termcap interface; Term::Complete - Perl word completion module ...
      
      How can I tell if a Perl module is core or part of the standard ...
        stackoverflow.com/.../how-can-i-tell-if-a-perl-module-is-core-or-part-of-...
          Jan 12, 2010 - For the really lazy, there's the Core Modules list on the perldoc.perl.org website. From coomand-line: Let's say that you want to know whether module Tie::Hash is installed. To find out, execute the following from the command line:
      
      Which core modules did Perl 5.x have? - Perl Monks
        www.perlmonks.org/?node_id=670914
          PerlMonks
          Feb 28, 2008 - 5 posts - ‎3 authors
          is there someplace a comprehensive list of core modules shipped with Perl, grouped by the version? I have to remain compatible with 5.6.0 in ... 
      
      Module::CoreList - search.cpan.org
        search.cpan.org/perldoc?Module%3A%3ACoreList
        CPAN Module::CoreList - what modules shipped with versions of perl ... Module::CoreList provides information on which core and dual-life modules shipped with each ...
      
      etc...
      
      

        Please note that the 'core modules' sections of http://perldoc.perl.org are out of date. For example there's no J section yet JSON::PP has been core for some time:

        corelist JSON::PP Data for 2014-05-27 JSON::PP was first released with perl v5.13.9

        I've raised the issue in the past, but will do so again now.

      "...answer that question for myself?"

      Perhaps like this?

      " I've never taken a formal class on Perl."

      Never mind. Perhaps this spared you another painful experience (i'm a bit unsure "ob man dass so sagt").

      I saw some assignments from such a "formal class on Perl". Holy crap! Weird constructs and inquisitorial questions without any practical orientation.

      I doubt very much that you would have learned anything about corelist in such "a formal class".

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        That's two of you now who have leaned on Google rather than Super Search.

        I'll take that as a cluebat. :-)