This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5db: fix an accidental effect of strictures
[perl5.git] / lib / perl5db.pl
index 0751738..7cfeee2 100644 (file)
@@ -8666,8 +8666,11 @@ Look through all the symbols in the package. C<grep> out all the possible hashes
 
 =cut
 
-        my @out = map "$prefix$_", grep /^\Q$text/, grep /^_?[a-zA-Z]/,
-          keys %$pack;
+        my @out = do {
+            no strict 'refs';
+            map "$prefix$_", grep /^\Q$text/, grep /^_?[a-zA-Z]/,
+            keys %$pack;
+        };
 
 =pod