Re: perl flawed or my fault



<anno4000@xxxxxxxxxxxxxxxxxxxxxx> wrote in comp.lang.perl.misc:
Eric Schwartz <emschwar@xxxxxxxxx> wrote in comp.lang.perl.misc:
"John W. Krahn" <someone@xxxxxxxxxxx> writes:

[...]

while ( $low < $high - 1 ) {
my $mid = ($low + $high)/2;
$list->[ $mid] le $targ ? $low : $high = $mid;
}

The if-else equivalent to ?: is four lines, even cuddling the else.

Five!

I can never bring myself to use it.
.