X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/ee59ac1770a707c4a0b8cbd4165f107558a1b6ec..dcfbcce2b273096853629671e1e3a9c34c7ac7c8:/lib/perl5db.pl diff --git a/lib/perl5db.pl b/lib/perl5db.pl index f26731b..07ee636 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -528,7 +528,8 @@ BEGIN { # Debugger for Perl 5.00x; perl5db.pl patch level: use vars qw($VERSION $header); -$VERSION = '1.49_04'; +# bump to X.XX in blead, only use X.XX_XX in maint +$VERSION = '1.50'; $header = "perl5db.pl version $VERSION"; @@ -1951,7 +1952,10 @@ sub _DB__handle_y_command { = $obj->cmd_args =~ /\A(?:(\d*)\s*(.*))?\z/) { # See if we've got the necessary support. - if (!eval { require PadWalker; PadWalker->VERSION(0.08) }) { + if (!eval { + local @INC = @INC; + pop @INC if $INC[-1] eq '.'; + require PadWalker; PadWalker->VERSION(0.08) }) { my $Err = $@; _db_warn( $Err =~ /locate/ @@ -9441,7 +9445,10 @@ if PadWalker could be loaded. =cut - if (not $text =~ /::/ and eval { require PadWalker } ) { + if (not $text =~ /::/ and eval { + local @INC = @INC; + pop @INC if $INC[-1] eq '.'; + require PadWalker } ) { my $level = 1; while (1) { my @info = caller($level);