summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2011-12-21 19:25:24 +0100
committerFlorian Ragwitz <rafl@debian.org>2011-12-21 19:25:59 +0100
commit86c08a2ca2546ef08513c65dabf686423cade2f3 (patch)
tree0fdf11b10688ad5fbf588240f238275763013fe1
parenta71535a847ba0844f902bb623916ec018cc19914 (diff)
downloadperl-86c08a2ca2546ef08513c65dabf686423cade2f3.tar.gz
We don't care about "Pragma" vs. "Pragmata"
-rwxr-xr-xPorting/corelist-perldelta.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/Porting/corelist-perldelta.pl b/Porting/corelist-perldelta.pl
index 704a774b91..a9213c4802 100755
--- a/Porting/corelist-perldelta.pl
+++ b/Porting/corelist-perldelta.pl
@@ -9,9 +9,9 @@ use Getopt::Long;
use Algorithm::Diff;
my %sections = (
- new => 'New Modules and Pragmata',
+ new => 'New Modules and Pragma',
updated => 'Updated Modules and Pragma',
- removed => 'Removed Modules and Pragmata',
+ removed => 'Removed Modules and Pragma',
);
my $deprecated;
@@ -311,8 +311,9 @@ sub do_check {
$self->_look_for_range($pod,
sub {
my ($el) = @_;
- my $f = $el->[0] =~ /^head(\d)$/ && $el->[2] eq $section;
- $level = $1 if $f && !$level;
+ my ($heading) = $el->[0] =~ /^head(\d)$/;
+ my $f = $heading && $el->[2] =~ /^\Q$section\E/;
+ $level = $heading if $f && !$level;
return $f;
},
sub {