| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | |||
| 4 | use strict; | ||
| 5 | use ExtUtils::Installed; | ||
| 6 | |||
| 7 | # $Id$ | ||
| 8 | # Simple script to give details of Lyrics::Fetcher and fetcher modules | ||
| 9 | # installed, to provide useful information when reporting bugs. | ||
| 10 | |||
| 11 | |||
| 12 | my $report; | ||
| 13 | |||
| 14 | $report .= "Installed Lyrics::Fetcher::* modules " | ||
| 15 | . "(according to ExtUtils::Installed):\n"; | ||
| 16 | my $installed = ExtUtils::Installed->new(); | ||
| 17 | foreach my $module (grep(/^Lyrics::Fetcher/, $installed->modules())) { | ||
| 18 | my $version = $installed->version($module) || "???"; | ||
| 19 | $report .= " * $module version $version\n"; | ||
| 20 | } | ||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | |||
| 26 | print $report; |