Skip to content

Instantly share code, notes, and snippets.

@DemmyDemon
Created October 28, 2013 14:48
Show Gist options
  • Save DemmyDemon/7198013 to your computer and use it in GitHub Desktop.
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
#!/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