5 corelist - a commandline frontend to Module::CoreList
9 See L<Module::CoreList> for one.
13 corelist [-a] [ Modulename [ version ]] ...
14 corelist [-v [ version ]]
24 utf8 was first released with perl 5.006
45 help! help! help! to see more help, try --man.
53 lists all of the perl release versions we got the CoreList for.
55 If you pass a version argument (value of C<$]>, like 5.00503),
56 you get a list of all the modules and their respective versions.
70 GetOptions(\%Opts, qw[ help|?! man! v|version:f a! ] );
72 pod2usage(1) if $Opts{help};
73 pod2usage(-verbose=>2) if $Opts{man};
77 if( exists $Module::CoreList::version{$Opts{v}} ) {
78 print "\nThe following modules were in perl v$Opts{v} CORE\n";
79 print "$_ ", $Module::CoreList::version{$Opts{v}}{$_} || " ","\n"
80 for sort keys %{$Module::CoreList::version{$Opts{v}}};
83 print "\nModule::CoreList has no info on perl v$Opts{v}\n\n";
86 print "\nModule::CoreList has info on the following perl versions:\n";
87 print "$_\n" for sort keys %Module::CoreList::version;
93 if ($ARGV[0] =~ /=/) {
94 ($mod, $ver) = split /=/, shift @ARGV;
97 $ver = (@ARGV && $ARGV[0] =~ /^\d/) ? shift @ARGV : "";
99 module_version($mod,$ver);
110 $ver = "" unless defined $ver;
112 my $ret = Module::CoreList->first_release(@_);
113 my $msg = "$mod $ver";
117 $msg .= "first " unless $ver;
118 $msg .= "released with perl $ret"
120 $msg .= " was not in CORE (or so I think)";
123 print "\n",$msg,"\n";
125 if(defined $ret and exists $Opts{a} and $Opts{a}){
127 sort keys %Module::CoreList::version ){
129 printf " %-10s %-10s\n",
131 $Module::CoreList::version{$v}{$mod}
133 if exists $Module::CoreList::version{$v}{$mod};
142 $ corelist File::Spec
144 File::Spec was first released with perl 5.005
146 $ corelist File::Spec 0.83
148 File::Spec 0.83 was released with perl 5.007003
150 $ corelist File::Spec 0.89
152 File::Spec 0.89 was not in CORE (or so I think)
154 $ corelist File::Spec::Aliens
156 File::Spec::Aliens was not in CORE (or so I think)
160 Copyright (c) 2002-2006 by D.H. aka PodMaster
162 Current maintainer : Rafael Garcia-Suarez E<lt>rgarciasuarez at mandriva dot
165 This program is distributed under the same terms as perl itself.
166 See http://perl.org/ or http://cpan.org/ for more info on that.