App-EPAN
view release on metacpan or search on metacpan
lib/App/EPAN.pm view on Meta::CPAN
$path = dir($path);
LOGDIE "path '$path' does not exist (wrong -t option?)" unless -d $path;
my $idpath = $path->subdir(qw< authors id >);
my %data_for;
for my $file (File::Find::Rule->extras({follow => 1})->file()
->in($idpath->stringify()))
{
INFO "indexing $file";
my $index_path =
file($file)->relative($idpath)->as_foreign('Unix')->stringify();
my $dm = Dist::Metadata->new(file => $file);
my $version_for = $dm->package_versions();
$data_for{distro}{$index_path} = $version_for;
(my $bare_index_path = $index_path) =~
s{^(.)/(\1.)/(\2.*?)/}{$3/}mxs;
$data_for{bare_distro}{$bare_index_path} = $version_for;
my %_localdata_for;
my $score = 0;
( run in 1.023 second using v1.01-cache-2.11-cpan-64ef6c95b5d )