summaryrefslogtreecommitdiff
path: root/lib/perl5db.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-08 17:43:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-08 17:43:08 +0000
commit9be39f1fefc767784ef8311ff386fc91b114b8e8 (patch)
tree31d0f24f95a480420400d2a3436118ee242f55b0 /lib/perl5db.pl
parentbf6e0d8f7ca557309a0602b448fa9dfa687ffc62 (diff)
downloadperl-9be39f1fefc767784ef8311ff386fc91b114b8e8.tar.gz
Accidental retraction of #6549.
p4raw-id: //depot/perl@6550
Diffstat (limited to 'lib/perl5db.pl')
-rw-r--r--lib/perl5db.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl
index 7257aa90d4..cc6a405823 100644
--- a/lib/perl5db.pl
+++ b/lib/perl5db.pl
@@ -899,9 +899,9 @@ EOP
print $OUT "Will stop on load of `@{[join '\', `', sort keys %break_on_load]}'.\n";
next CMD; };
$cmd =~ /^b\b\s*(postpone|compile)\b\s*([':A-Za-z_][':\w]*)\s*(.*)/ && do {
- my $cond = length $3 ? $3 : '1';
+ my $cond = $3 || '1';
my ($subname, $break) = ($2, $1 eq 'postpone');
- $subname =~ s/\'/::/g;
+ $subname =~ s/\'/::/;
$subname = "${'package'}::" . $subname
unless $subname =~ /::/;
$subname = "main".$subname if substr($subname,0,2) eq "::";
@@ -910,8 +910,8 @@ EOP
next CMD; };
$cmd =~ /^b\b\s*([':A-Za-z_][':\w]*(?:\[.*\])?)\s*(.*)/ && do {
$subname = $1;
- $cond = length $2 ? $2 : '1';
- $subname =~ s/\'/::/g;
+ $cond = $2 || '1';
+ $subname =~ s/\'/::/;
$subname = "${'package'}::" . $subname
unless $subname =~ /::/;
$subname = "main".$subname if substr($subname,0,2) eq "::";
@@ -931,7 +931,7 @@ EOP
next CMD; };
$cmd =~ /^b\b\s*(\d*)\s*(.*)/ && do {
$i = $1 || $line;
- $cond = defined $2 ? $2 : '1';
+ $cond = $2 || '1';
if ($dbline[$i] == 0) {
print $OUT "Line $i not breakable.\n";
} else {