X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/2f4a2205cfe200d9fc6ec34a9a629ea28a1f4567..6e901dbb6e723d92e1eef04b5b0539011be65f2a:/dist/Module-CoreList/lib/Module/CoreList.pod diff --git a/dist/Module-CoreList/lib/Module/CoreList.pod b/dist/Module-CoreList/lib/Module/CoreList.pod index 9754446..102383e 100644 --- a/dist/Module-CoreList/lib/Module/CoreList.pod +++ b/dist/Module-CoreList/lib/Module/CoreList.pod @@ -8,13 +8,23 @@ Module::CoreList - what modules shipped with versions of perl 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 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 + + if (Module::CoreList::is_core('File::Spec')) { + print "File::Spec is a core module\n"; + } print join ', ', Module::CoreList->find_modules(qr/Data/); # prints 'Data::Dumper' - print join ', ', Module::CoreList->find_modules(qr/test::h.*::.*s/i, 5.008008); + 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} }; @@ -68,8 +78,24 @@ you may provide a list of perl versions to limit the regex search. =item C -Takes a perl version as an argument. Returns that perl version if it exists or C -otherwise. +Takes a perl version as an argument. Upon successful completion, returns a +reference to a hash. Each element of that hash has a key which is the name of +a module (I 'File::Path') shipped with that version of perl and a value +which is the version number (I '2.09') of that module which shipped +with that version of perl . Returns C otherwise. + +=item C + +Available in version 2.99 and above. + +Returns true if MODULE was bundled with the specified version of Perl. +You can optionally specify a minimum version of the module, +and can also specify a version of Perl. +If a version of Perl isn't specified, +C will use the numeric version of Perl that is running (ie C<$]>). + +If you want to specify the version of Perl, but don't care about +the version of the module, pass C for the module version: =item C @@ -82,7 +108,7 @@ omitted, it defaults to the current version of Perl. Available in version 2.77 and above. -Returns the first PERL_VERSION where the MODULE was marked as deprecated. Returns C +Returns the first perl version where the MODULE was marked as deprecated. Returns C if the MODULE has not been marked as deprecated. =item C @@ -142,6 +168,17 @@ that's what you're testing for. Starting with 2.10, the special module name C refers to the version of the Unicode Character Database bundled with Perl. +=item C<%Module::CoreList::delta> + +Available in version 3.00 and above. + +It is a hash of hashes that is keyed on perl version. Each keyed hash will have the +following keys: + + delta_from - a previous perl version that the changes are based on + changed - a hash of module/versions that have changed + removed - a hash of modules that have been removed + =item C<%Module::CoreList::released> Keyed on perl version this contains ISO @@ -178,25 +215,22 @@ A hash that contains information on the appropriate bug tracker for each core module. BUGS is an email or url to post bug reports. For modules with -UPSTREAM => 'blead', use perl5-porters@perl.org. rt.cpan.org +UPSTREAM => 'blead', use L. rt.cpan.org appears to automatically provide a URL for CPAN modules; any value given here overrides the default: -http://rt.cpan.org/Public/Dist/Display.html?Name=$ModuleName +L =back =head1 CAVEATS Module::CoreList currently covers the 5.000, 5.001, 5.002, 5.003_07, -5.004, 5.004_05, 5.005, 5.005_03, 5.005_04, 5.6.0, 5.6.1, 5.6.2, 5.7.3, -5.8.0, 5.8.1, 5.8.2, 5.8.3, 5.8.4, 5.8.5, 5.8.6, 5.8.7, 5.8.8, 5.8.9, -5.9.0, 5.9.1, 5.9.2, 5.9.3, 5.9.4, 5.9.5, 5.10.0, 5.10.1, 5.11.0, 5.11.1, -5.11.2, 5.11.3, 5.11.4, 5.11.5, 5.12.0, 5.12.1, 5.12.2, 5.12.3, 5.12.4, -5.12.5, 5.13.0, 5.13.1, 5.13.2, 5.13.3, 5.13.4, 5.13.5, 5.13.6, 5.13.7, -5.13.8, 5.13.9, 5.13.10, 5.13.11, 5.14.0, 5.14.1, 5.14.2 5.14.3, 5.14.4, -5.15.0, 5.15.1, 5.15.2, 5.15.3, 5.15.4, 5.15.5, 5.15.6, 5.15.7, 5.15.8, -5.15.9, 5.16.0, 5.16.1, 5.16.2, 5.16.3, 5.17.0, 5.17.1, 5.17.2, 5.17.3, -5.17.4, 5.17.5, 5.17.6, 5.17.7, 5.17.8, 5.17.9, 5.17.10, 5.17.11, 5.18.0, 5.19.0 and 5.19.1 releases of perl. +5.004, 5.004_05, 5.005, 5.005_03, 5.005_04 and 5.7.3 releases of perl. + +All stable releases of perl since 5.6.0 are covered. + +All development releases of perl since 5.9.0 are covered. + =head1 HISTORY