6 # Check __BEGIN_NAMESPACE ... __END_NAMESPACE pairing in an include file.
13 open my $in, '<', $path
14 or die "open $path failed: $!";
17 if ( /^\s*__BEGIN_(.*)\b/ ) {
20 elsif ( /^\s*__END_(.*)\b/ ) {
24 print "$path:$.: BEGIN $tag paired with END $1\n";
29 print "$path:$.: END $1 does not match a begin\n";
36 print "$path: Unmatched begin tags " . join (' ', @stack) ."\n";
40 if ($localcode == 0) {