summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.ohio-state.edu>1997-03-31 18:55:55 -0500
committerChip Salzenberg <chip@atlantic.net>1997-03-26 07:04:34 +1200
commite63173ce9ca79e735e674d6d3bfaec8929752e00 (patch)
treeaf0523a0dc0d617707d92aadc7e0716732928747 /lib
parent91a06757ac3b925b7c0c6afbf3f1378bd4051754 (diff)
downloadperl-e63173ce9ca79e735e674d6d3bfaec8929752e00.tar.gz
Fix C<print $_> in debugger
private-msgid: 199703312355.SAA01068@monk.mps.ohio-state.edu
Diffstat (limited to 'lib')
-rw-r--r--lib/perl5db.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index 5e2bd43ae6..9718fede67 100644
--- a/lib/perl5db.pl
+++ b/lib/perl5db.pl
@@ -2,7 +2,7 @@ package DB;
# Debugger for Perl 5.00x; perl5db.pl patch level:
-$VERSION = 0.9908;
+$VERSION = 0.9909;
$header = "perl5db.pl patch level $VERSION";
# Enhanced by ilya@math.ohio-state.edu (Ilya Zakharevich)
@@ -411,7 +411,9 @@ sub DB {
$evalarg = $action, &eval if $action;
if ($single || $was_signal) {
local $level = $level + 1;
- map {$evalarg = $_, &eval} @$pre;
+ foreach $evalarg (@$pre) {
+ &eval;
+ }
print $OUT $#stack . " levels deep in subroutine calls!\n"
if $single & 4;
$start = $line;
@@ -1074,7 +1076,9 @@ sub DB {
}
} # CMD:
$exiting = 1 unless defined $cmd;
- map {$evalarg = $_; &eval} @$post;
+ foreach $evalarg (@$post) {
+ &eval;
+ }
} # if ($single || $signal)
($@, $!, $,, $/, $\, $^W) = @saved;
();