From: Jarkko Hietaniemi Date: Sat, 27 Oct 2001 17:07:46 +0000 (+0000) Subject: Let's not replace reason if there's one already supplied. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=906e884f1d1276233db450a971877904f6d813ee;p=p5sagit%2Fp5-mst-13.2.git Let's not replace reason if there's one already supplied. p4raw-id: //depot/perl@12710 --- diff --git a/t/op/regexp.t b/t/op/regexp.t index 5a31696..3cebee9 100755 --- a/t/op/regexp.t +++ b/t/op/regexp.t @@ -69,7 +69,7 @@ while () { $expect =~ s/\\n/\n/g; $expect = $repl = '-' if $skip_amp and $input =~ /\$[&\`\']/; $skip = ($skip_amp ? ($result =~ s/B//i) : ($result =~ s/B//)); - $reason = $skip_amp ? 'skipping $&' : ''; + $reason = 'skipping $&' if $reason eq '' && $skip_amp; $result =~ s/B//i unless $skip; for $study ('', 'study \$subject') { $c = $iters;