Created
October 28, 2013 14:48
-
-
Save DemmyDemon/7198013 to your computer and use it in GitHub Desktop.
Just a quick way to check if a module is in Perl's core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use Module::CoreList; | |
die "Heh, specify a module?\n" unless @ARGV; | |
foreach my $module (@ARGV){ | |
my @modules = Module::CoreList->find_modules($module); | |
if (@modules){ | |
foreach my $module (@modules){ | |
print $module,' (',Module::CoreList->first_release($module),")\n"; | |
} | |
} | |
else { | |
warn "Could not find $module in Module::CoreList\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment