summaryrefslogtreecommitdiff
path: root/Porting/Maintainers.pm
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2011-07-06 16:54:06 +0200
committerFlorian Ragwitz <rafl@debian.org>2011-07-06 17:35:11 +0200
commit394fdf77c71953b5f4ea5c58b8f1ad27f1f0a14b (patch)
tree4558c238f9332c90497345bd42c3a6f50b92eb4b /Porting/Maintainers.pm
parent8b2227e6d2d67feb2d337b28ef17b809577a163c (diff)
downloadperl-394fdf77c71953b5f4ea5c58b8f1ad27f1f0a14b.tar.gz
Fix a thinko in filtering excluded module files
If we got a regexp ref, use it as it. Otherwise quote the string in a regexp.
Diffstat (limited to 'Porting/Maintainers.pm')
-rw-r--r--Porting/Maintainers.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Porting/Maintainers.pm b/Porting/Maintainers.pm
index 7969af7dfd..6c5b8c256e 100644
--- a/Porting/Maintainers.pm
+++ b/Porting/Maintainers.pm
@@ -22,7 +22,7 @@ use vars qw(@ISA @EXPORT_OK $VERSION);
show_results process_options files_to_modules
finish_tap_output
reload_manifest);
-$VERSION = 0.05;
+$VERSION = 0.06;
require Exporter;
@@ -94,7 +94,7 @@ sub filter_excluded {
unless my $excluded = $Modules{$m}{EXCLUDED};
my ($pat) = map { qr/$_/ } join '|' => map {
- ref $_ ? qr/\Q$_\E/ : $_
+ ref $_ ? $_ : qr/\Q$_\E/
} @{ $excluded };
return grep { $_ !~ $pat } @files;