Bug#469958: libxml-sax-perl: broken link in the documentation

Niko Tyni ntyni at debian.org
Sat Mar 8 09:36:43 UTC 2008


Package: libxml-sax-perl
Version: 0.16+dfsg-2
Severity: normal

The end of README.Debian states:

 If it's too late and you already have another version of XML::SAX in
 /usr/local shadowing the Debian one, a simple way to uninstalling it is
 given in the CPAN FAQ:

 http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules

but surprisingly the information has been removed recently from the FAQ.

I'm quoting the old entry here I found with some googling so I don't have
to do it again.  This should go straight into README.Debian instead of
the link.

  How do I remove installed Perl modules?
   By using the ExtUtils::Installed and ExtUtils::Packlist modules that
   come with Perl as in the example below. There is also a more elaborate
   example in the ExtUtils::Packlist man page.
  
  #!/usr/local/bin/perl -w
  use ExtUtils::Packlist;
  use ExtUtils::Installed;
  $ARGV[0] or die "Usage: $0 Module::Name\n";
  my $mod = $ARGV[0];
  my $inst = ExtUtils::Installed->new();
  foreach my $item (sort($inst->files($mod))) {
      print "removing $item\n";
      unlink $item;
  }
  my $packfile = $inst->packlist($mod)->packlist_file();
  print "removing $packfile\n";
  unlink $packfile;
  
  
Cheers,
-- 
Niko Tyni   ntyni at debian.org





More information about the pkg-perl-maintainers mailing list