.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Module::CoreList 3perl" .TH Module::CoreList 3perl 2024-09-01 "perl v5.40.0" "Perl Programmers Reference Guide" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Module::CoreList \- what modules shipped with versions of perl .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& use Module::CoreList; \& \& print $Module::CoreList::version{5.00503}{CPAN}; # prints 1.48 \& \& print Module::CoreList\->first_release(\*(AqFile::Spec\*(Aq); \& # prints 5.00405 \& \& print Module::CoreList\->first_release_by_date(\*(AqFile::Spec\*(Aq); \& # prints 5.005 \& \& print Module::CoreList\->first_release(\*(AqFile::Spec\*(Aq, 0.82); \& # prints 5.006001 \& \& if (Module::CoreList::is_core(\*(AqFile::Spec\*(Aq)) { \& print "File::Spec is a core module\en"; \& } \& \& print join \*(Aq, \*(Aq, Module::CoreList\->find_modules(qr/Data/); \& # prints \*(AqData::Dumper\*(Aq \& print join \*(Aq, \*(Aq, \& Module::CoreList\->find_modules(qr/test::h.*::.*s/i, 5.008008); \& # prints \*(AqTest::Harness::Assert, Test::Harness::Straps\*(Aq \& \& print join ", ", @{ $Module::CoreList::families{5.005} }; \& # prints "5.005, 5.00503, 5.00504" .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Module::CoreList provides information on which core and dual-life modules shipped with each version of perl. .PP It provides a number of mechanisms for querying this information. .PP There is a utility called corelist provided with this module which is a convenient way of querying from the command-line. .PP There is a functional programming API available for programmers to query information. .PP Programmers may also query the contained hash structures to find relevant information. .SH "FUNCTIONS API" .IX Header "FUNCTIONS API" These are the functions that are available, they may either be called as functions or class methods: .PP .Vb 1 \& Module::CoreList::first_release(\*(AqFile::Spec\*(Aq); # as a function \& \& Module::CoreList\->first_release(\*(AqFile::Spec\*(Aq); # class method .Ve .ie n .IP "first_release( MODULE )" 4 .el .IP "\f(CWfirst_release( MODULE )\fR" 4 .IX Item "first_release( MODULE )" Behaviour since version 2.11 .Sp Requires a MODULE name as an argument, returns the perl version when that module first appeared in core as ordered by perl version number or undef ( in scalar context ) or an empty list ( in list context ) if that module is not in core. .ie n .IP "first_release_by_date( MODULE )" 4 .el .IP "\f(CWfirst_release_by_date( MODULE )\fR" 4 .IX Item "first_release_by_date( MODULE )" Requires a MODULE name as an argument, returns the perl version when that module first appeared in core as ordered by release date or undef ( in scalar context ) or an empty list ( in list context ) if that module is not in core. .ie n .IP """find_modules( REGEX, [ LIST OF PERLS ] )""" 4 .el .IP "\f(CWfind_modules( REGEX, [ LIST OF PERLS ] )\fR" 4 .IX Item "find_modules( REGEX, [ LIST OF PERLS ] )" Takes a regex as an argument, returns a list of modules that match the regex given. If only a regex is provided applies to all modules in all perl versions. Optionally you may provide a list of perl versions to limit the regex search. .ie n .IP "find_version( PERL_VERSION )" 4 .el .IP "\f(CWfind_version( PERL_VERSION )\fR" 4 .IX Item "find_version( PERL_VERSION )" 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 (\fIe.g.,\fR 'File::Path') shipped with that version of perl and a value which is the version number (\fIe.g.,\fR '2.09') of that module which shipped with that version of perl . Returns \f(CW\*(C`undef\*(C'\fR otherwise. .ie n .IP """is_core( MODULE, [ MODULE_VERSION, [ PERL_VERSION ] ] )""" 4 .el .IP "\f(CWis_core( MODULE, [ MODULE_VERSION, [ PERL_VERSION ] ] )\fR" 4 .IX Item "is_core( MODULE, [ MODULE_VERSION, [ PERL_VERSION ] ] )" Available in version 2.99 and above. .Sp 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, \&\f(CWis_core()\fR will use the numeric version of Perl that is running (ie \f(CW$]\fR). .Sp If you want to specify the version of Perl, but don't care about the version of the module, pass \f(CW\*(C`undef\*(C'\fR for the module version: .ie n .IP """is_deprecated( MODULE, PERL_VERSION )""" 4 .el .IP "\f(CWis_deprecated( MODULE, PERL_VERSION )\fR" 4 .IX Item "is_deprecated( MODULE, PERL_VERSION )" Available in version 2.22 and above. .Sp Returns true if MODULE is marked as deprecated in PERL_VERSION. If PERL_VERSION is omitted, it defaults to the current version of Perl. .ie n .IP "deprecated_in( MODULE )" 4 .el .IP "\f(CWdeprecated_in( MODULE )\fR" 4 .IX Item "deprecated_in( MODULE )" Available in version 2.77 and above. .Sp Returns the first perl version where the MODULE was marked as deprecated. Returns \f(CW\*(C`undef\*(C'\fR if the MODULE has not been marked as deprecated. .ie n .IP "removed_from( MODULE )" 4 .el .IP "\f(CWremoved_from( MODULE )\fR" 4 .IX Item "removed_from( MODULE )" Available in version 2.32 and above .Sp Takes a module name as an argument, returns the first perl version where that module was removed from core. Returns undef if the given module was never in core or remains in core. .ie n .IP "removed_from_by_date( MODULE )" 4 .el .IP "\f(CWremoved_from_by_date( MODULE )\fR" 4 .IX Item "removed_from_by_date( MODULE )" Available in version 2.32 and above .Sp Takes a module name as an argument, returns the first perl version by release date where that module was removed from core. Returns undef if the given module was never in core or remains in core. .ie n .IP """changes_between( PERL_VERSION, PERL_VERSION )""" 4 .el .IP "\f(CWchanges_between( PERL_VERSION, PERL_VERSION )\fR" 4 .IX Item "changes_between( PERL_VERSION, PERL_VERSION )" Available in version 2.66 and above. .Sp Given two perl versions, this returns a list of pairs describing the changes in core module content between them. The list is suitable for storing in a hash. The keys are library names and the values are hashrefs. Each hashref has an entry for one or both of \f(CW\*(C`left\*(C'\fR and \f(CW\*(C`right\*(C'\fR, giving the versions of the library in each of the left and right perl distributions. .Sp For example, it might return these data (among others) for the difference between 5.008000 and 5.008001: .Sp .Vb 4 \& \*(AqPod::ParseLink\*(Aq => { left => \*(Aq1.05\*(Aq, right => \*(Aq1.06\*(Aq }, \& \*(AqPod::ParseUtils\*(Aq => { left => \*(Aq0.22\*(Aq, right => \*(Aq0.3\*(Aq }, \& \*(AqPod::Perldoc\*(Aq => { right => \*(Aq3.10\*(Aq }, \& \*(AqPod::Perldoc::BaseTo\*(Aq => { right => undef }, .Ve .Sp This shows us two libraries being updated and two being added, one of which has an undefined version in the right-hand side version. .SH "DATA STRUCTURES" .IX Header "DATA STRUCTURES" These are the hash data structures that are available: .ie n .IP %Module::CoreList::version 4 .el .IP \f(CW%Module::CoreList::version\fR 4 .IX Item "%Module::CoreList::version" A hash of hashes that is keyed on perl version as indicated in $]. The second level hash is module => version pairs. .Sp Note, it is possible for the version of a module to be unspecified, whereby the value is \f(CW\*(C`undef\*(C'\fR, so use \f(CW\*(C`exists $version{$foo}{$bar}\*(C'\fR if that's what you're testing for. .Sp Starting with 2.10, the special module name \f(CW\*(C`Unicode\*(C'\fR refers to the version of the Unicode Character Database bundled with Perl. .ie n .IP %Module::CoreList::delta 4 .el .IP \f(CW%Module::CoreList::delta\fR 4 .IX Item "%Module::CoreList::delta" Available in version 3.00 and above. .Sp It is a hash of hashes that is keyed on perl version. Each keyed hash will have the following keys: .Sp .Vb 3 \& 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 .Ve .ie n .IP %Module::CoreList::released 4 .el .IP \f(CW%Module::CoreList::released\fR 4 .IX Item "%Module::CoreList::released" Keyed on perl version this contains ISO formatted versions of the release dates, as gleaned from perlhist. .ie n .IP %Module::CoreList::families 4 .el .IP \f(CW%Module::CoreList::families\fR 4 .IX Item "%Module::CoreList::families" New, in 1.96, a hash that clusters known perl releases by their major versions. .ie n .IP %Module::CoreList::deprecated 4 .el .IP \f(CW%Module::CoreList::deprecated\fR 4 .IX Item "%Module::CoreList::deprecated" A hash of hashes keyed on perl version and on module name. If a module is defined it indicates that that module is deprecated in that perl version and is scheduled for removal from core at some future point. .ie n .IP %Module::CoreList::upstream 4 .el .IP \f(CW%Module::CoreList::upstream\fR 4 .IX Item "%Module::CoreList::upstream" A hash that contains information on where patches should be directed for each core module. .Sp UPSTREAM indicates where patches should go. \f(CW\*(C`undef\*(C'\fR implies that this hasn't been discussed for the module at hand. \&\f(CW\*(C`blead\*(C'\fR indicates that the copy of the module in the blead sources is to be considered canonical, \f(CW\*(C`cpan\*(C'\fR means that the module on CPAN is to be patched first. \f(CW\*(C`first\-come\*(C'\fR means that blead can be patched freely if it is in sync with the latest release on CPAN. .ie n .IP %Module::CoreList::bug_tracker 4 .el .IP \f(CW%Module::CoreList::bug_tracker\fR 4 .IX Item "%Module::CoreList::bug_tracker" A hash that contains information on the appropriate bug tracker for each core module. .Sp BUGS is an email or url to post bug reports. For modules with UPSTREAM => 'blead', use . rt.cpan.org appears to automatically provide a URL for CPAN modules; any value given here overrides the default: .SH CAVEATS .IX Header "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 and 5.7.3 releases of perl. .PP All stable releases of perl since 5.6.0 are covered. .PP All development releases of perl since 5.9.0 are covered. .SH HISTORY .IX Header "HISTORY" Moved to Changes file. .SH AUTHOR .IX Header "AUTHOR" Richard Clamp .PP Currently maintained by the perl 5 porters . .SH LICENSE .IX Header "LICENSE" Copyright (C) 2002\-2009 Richard Clamp. All Rights Reserved. .PP This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .SH "SEE ALSO" .IX Header "SEE ALSO" corelist, Module::Info, perl,