MT 1587 : Fixed creation bug
[koha.git] / misc / perlmodule_rm.pl
blob82e34c6a125757fb6615c72ef71e05f972bbfd0f
1 #!/usr/bin/perl -w
2 # Remove a perl module
3 use ExtUtils::Packlist;
4 use ExtUtils::Installed;
6 $ARGV[0] or die "Usage: $0 Module::Name\n";
8 my $mod = $ARGV[0];
10 my $inst = ExtUtils::Installed->new();
12 foreach my $item (sort($inst->files($mod))) {
13 print "removing $item\n";
14 unlink $item;
17 my $packfile = $inst->packlist($mod)->packlist_file();
18 print "removing $packfile\n";
19 unlink $packfile;