From: Jarkko Hietaniemi Date: Tue, 8 Aug 2000 17:43:08 +0000 (+0000) Subject: Accidental retraction of #6549. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8f98a6b9b412fbed4fa18dc55b1f33d38770f223;p=p5sagit%2Fp5-mst-13.2.git Accidental retraction of #6549. p4raw-id: //depot/perl@6550 --- diff --git a/lib/perl5db.pl b/lib/perl5db.pl index 7257aa9..cc6a405 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 {