This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c030ccd
)
Don't clobber $1 et al in debugger's DB::sub()
author
Ilya Zakharevich
<ilya@math.ohio-state.edu>
Fri, 21 Feb 1997 14:53:46 +0000
(
02:53
+1200)
committer
Chip Salzenberg
<chip@atlantic.net>
Fri, 21 Feb 1997 14:41:53 +0000
(
02:41
+1200)
lib/perl5db.pl
patch
|
blob
|
blame
|
history
diff --git
a/lib/perl5db.pl
b/lib/perl5db.pl
index
a82888a
..
738937f
100644
(file)
--- 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.990
4
;
+$VERSION = 0.990
5
;
$header = "perl5db.pl patch level $VERSION";
# Enhanced by ilya@math.ohio-state.edu (Ilya Zakharevich)
@@
-1086,8
+1086,8
@@
sub DB {
sub sub {
my ($al, $ret, @ret) = "";
- if (
$sub =~ /(.*)::AUTOLOAD$/
) {
-
$al = " for $ {$1 . '::AUTOLOAD'}
";
+ if (
length($sub) > 10 && substr($sub, -10, 10) eq '::AUTOLOAD'
) {
+
$al = " for $$sub
";
}
push(@stack, $single);
$single &= 1;