Bug 7116: White space on item form for bulk ordering from staged file
[koha.git] / misc / perlmodule_rm.pl
blob4dc3b64ff64467d08a1ed49df501ef37e745d02e
1 #!/usr/bin/perl
3 # Remove a perl module
5 use warnings;
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;