summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2012-06-25 16:07:25 +0200
committerVincent Pit <perl@profvince.com>2012-06-25 16:07:33 +0200
commit9df8bd1db54cceb60e2db0a139ff7db66d12a3de (patch)
tree2173a4daa56695b9aa351fafa160b2180199cd44 /lib
parenta47c73fc11a9b8f844ed64e461ff2c2e5b3fb95e (diff)
downloadperl-9df8bd1db54cceb60e2db0a139ff7db66d12a3de.tar.gz
Fix tab completion of module names in the debugger
Also broken by 'use strict'.
Diffstat (limited to 'lib')
-rw-r--r--lib/perl5db.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index d91415495f..4b4ab36bbd 100644
--- a/lib/perl5db.pl
+++ b/lib/perl5db.pl
@@ -8566,7 +8566,8 @@ start with 'main::'. Return this list.
return sort map { ( $_, db_complete( $_ . "::", "V ", 2 ) ) }
grep !/^main::/, grep /^\Q$text/,
- map { /^(.*)::$/ ? ( $prefix . "::$1" ) : () } keys %{ $prefix . '::' }
+ map { /^(.*)::$/ ? ( $prefix . "::$1" ) : () }
+ do { no strict 'refs'; keys %{ $prefix . '::' } }
if ( substr $line, 0, $start ) =~ /^\|*[Vm]\s+$/
and $text =~ /^(.*[^:])::?(\w*)$/
and $prefix = $1;