Bug 24807: Add "year" type to improve sorting behaviour
[koha.git] / misc / perlmodule_rm.pl
blobf5735ac4d2649c59096490cf3bd7a14040ba3932
1 #!/usr/bin/perl
3 # Remove a perl module
5 use Modern::Perl;
6 use ExtUtils::Packlist;
7 use ExtUtils::Installed;
9 $ARGV[0] or die "Usage: $0 Module::Name\n";
11 my $mod = $ARGV[0];
13 my $inst = ExtUtils::Installed->new();
15 foreach my $item (sort($inst->files($mod))) {
16 print "removing $item\n";
17 unlink $item;
20 my $packfile = $inst->packlist($mod)->packlist_file();
21 print "removing $packfile\n";
22 unlink $packfile;