Re: perl flawed or my fault
- From: anno4000@xxxxxxxxxxxxxxxxxxxxxx
- Date: 3 Oct 2006 19:03:23 GMT
<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..
- References:
- perl flawed or my fault
- From: paul
- Re: perl flawed or my fault
- From: John W. Krahn
- Re: perl flawed or my fault
- From: Eric Schwartz
- Re: perl flawed or my fault
- From: anno4000
- perl flawed or my fault
- Prev by Date: FAQ 2.9 What are the Perl newsgroups on Usenet? Where do I post questions?
- Next by Date: Re: Use of -i inplace option
- Previous by thread: Re: perl flawed or my fault
- Next by thread: Re: perl flawed or my fault
- Index(es):