Rosetta Code/Count examples: Difference between revisions

m
→‎{{header|Perl 6}}: Adjust matcher to catch oddball header markup.
m (Add a link to Full output page)
m (→‎{{header|Perl 6}}: Adjust matcher to catch oddball header markup.)
Line 1,681:
my $page =
$client.get("{ $url }/index.php?title={ uri-escape .<title> }&action=raw").content;
my $count = +$page.lc.comb(/ ^^'==' <-[\n=]>* '{{header|' \w+ \N+ '==' \sh* $$ /);
%tasks{.<title>} = {'cat' => %cat{$cat}, :$count};
print clear, 1 + $++, ' ', %cat{$cat}, ' ', .<title>;
10,327

edits