Content-type: text/html
use Module::CoreList; print $Module::CoreList::version{5.00503}{CPAN}; # prints 1.48 print Module::CoreList->first_release('File::Spec'); # prints 5.00405 print Module::CoreList->first_release_by_date('File::Spec'); # prints 5.005 print Module::CoreList->first_release('File::Spec', 0.82); # prints 5.006001 print join ', ', Module::CoreList->find_modules(qr/Data/); # prints 'Data::Dumper' print join ', ', Module::CoreList->find_modules(qr/test::h.*::.*s/i, 5.008008); # prints 'Test::Harness::Assert, Test::Harness::Straps' print join ", ", @{ $Module::CoreList::families{5.005} }; # prints "5.005, 5.00503, 5.00504" print join " ", @{ $Module::CoreList::patchlevel{5.008001} }; # prints "maint-5.8 21377"
Note, it is possible for the version of a module to be unspecified, whereby the value is undef, so use "exists $version{$foo}{$bar}" if that's what you're testing for.
It also contains %Module::CoreList::released hash, which has ISO formatted versions of the release dates, as gleaned from perlhist.
New, in 1.96 is also the %Module::CoreList::families hash, which clusters known perl releases by their major versions.
In 2.01 %Module::CoreList::patchlevel contains the branch and patchlevel corresponding to the specified perl version in the Perforce repository where the perl sources are kept.
Starting with 2.10, the special module name "Unicode" refers to the version of the Unicode Character Database bundled with Perl.
Since 2.11, Module::CoreList::first_release() returns the first release in the order of perl version numbers. If you want to get the earliest perl release instead, use Module::CoreList::first_release_by_date().
Currently maintained by the perl 5 porters <perl5-porters@perl.org>.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.