From: Shlomi Fish Date: Wed, 5 Sep 2012 02:37:13 +0000 (-0400) Subject: perl5db: fix an accidental effect of strictures X-Git-Tag: v5.17.4~135 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/32050a639a295d8d8a4d4c664592c86f79aa1383 perl5db: fix an accidental effect of strictures see https://rt.perl.org/rt3/Ticket/Display.html?id=114284 --- diff --git a/lib/perl5db.pl b/lib/perl5db.pl index 0751738..7cfeee2 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -8666,8 +8666,11 @@ Look through all the symbols in the package. C 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