PPM
view release on metacpan or search on metacpan
server/PPMServer.pm view on Meta::CPAN
local $/;
open(SUMMARY, "<$searchsummaryfile")
or die "Can't open $searchsummaryfile: $!";
$searchsummaryastext = <SUMMARY>;
close(SUMMARY);
# trim everything up to the first <SOFTPKG>
$searchsummaryastext =~ s/.*?<SOFTPKG/<SOFTPKG/s;
}
my $output = "<REPOSITORYSUMMARY>";
my @ppd_data = split m@</SOFTPKG>@o, $searchsummaryastext
unless @ppd_data;
foreach my $pkg (@ppd_data) {
if ($pkg =~ m@<${searchtag}>(.*)</${searchtag}>@s) {
next unless $1 =~ /${searchRE}/;
if ($pkg =~ m@<ARCHITECTURE.*${archname}.*?/>@s) {
$output .= $pkg . "</SOFTPKG>";
}
}
}
( run in 1.499 second using v1.01-cache-2.11-cpan-71847e10f99 )