File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1951,7 +1951,10 @@ sub _DB__handle_y_command {
1951
1951
= $obj -> cmd_args =~ / \A (?:(\d *)\s *(.*))?\z / ) {
1952
1952
1953
1953
# See if we've got the necessary support.
1954
- if (!eval { require PadWalker; PadWalker-> VERSION(0.08) }) {
1954
+ if (!eval {
1955
+ local @INC = @INC ;
1956
+ pop @INC if $INC [-1] eq ' .' ;
1957
+ require PadWalker; PadWalker-> VERSION(0.08) }) {
1955
1958
my $Err = $@ ;
1956
1959
_db_warn(
1957
1960
$Err =~ / locate/
@@ -9441,7 +9444,10 @@ =head3 Symbol completion: current package or package C<main>.
9441
9444
9442
9445
=cut
9443
9446
9444
- if (not $text =~ / ::/ and eval { require PadWalker } ) {
9447
+ if (not $text =~ / ::/ and eval {
9448
+ local @INC = @INC ;
9449
+ pop @INC if $INC [-1] eq ' .' ;
9450
+ require PadWalker } ) {
9445
9451
my $level = 1;
9446
9452
while (1) {
9447
9453
my @info = caller ($level );
You can’t perform that action at this time.
0 commit comments