Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

mr_bean (3802)

  (email not shown publicly)

Journal of mr_bean (3802)

Monday January 22, 2007
05:26 AM

Module::CoreList needs more publicity

[ #32228 ]

I couldn't remember the name of Module::CoreList, the module that tells you in which version modules in core made it into the core. I thought it was CoreVersion, but searching for core and coreversion and version on cpan didn't turn it up.

[Actually going back, now I find it's between 300-400 of the 1456 modules CPAN search returns for 'core'. But that's too far at the back. I didn't find it, anyway. I was turned off by Lingua::Stem, README.hpux, Chemistry::Atom in the list before it. All good modules, probably, but not at this moment.]

Googling on 'perl how tell what version core module dual life cpan made' also didn't turn it up.

I hope this message will make it easier for me when I'm looking for it next time. Easier because either Google finds it, or I remember I posted here about it.

I asked on freenode's #perl and someone gave me the answer straight away. Buubot there also answers questions of the form 'core:Module::CoreList'

You can use Module::CoreList this way to find when it made its own way into the core.

perl -MModule::CoreList -e "print Module::CoreList->first_release('Module::CoreList')"

Why do I want to know? I want to know how much I may require a user to install by using certain modules.

But perhaps there is a more extensive way to answer such questions.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Or use the corelist programm that comes with Module::CoreList:

    ~$ corelist Module::CoreList

    Module::CoreList  was first released with perl 5.009002
    • And don't you forget corelist accepts regexes as well (since 2.05):

      $ corelist /^Time/i

      Time::HiRes  was first released with perl 5.007003

      Time::Local  was first released with perl 5

      Time::gmtime  was first released with perl 5.004

      Time::localtime  was first released with perl 5.004

      Time::tm  was first released with perl 5.004
  • <plug type="shameless">

    Any irc bot based on Bot::BasicBot::Pluggable [] can answer your corelist requests, thanks to Bot::BasicBot::Pluggable::Module::CoreList [].


    There's one on the canonical #perl on MagNET [], by the way.

  • I was just bitten the same way. I've used this several times now, and couldn't remember the name "CoreList" to save my life, and the search listing on cpan was worthless. I eventually did a "man -k Module" on my box, and carefully read through the list. It just goes to show that names are important, particularly with CPAN, which essentially has no other way of navigating.