Re: help on example from "mastering algorithm with perl" on binary search

2009-06-27 Thread John W. Krahn
rich lee wrote: Hello everyone, Hello, I am trying to read "mastering algorithm with perl" and below example has me bit stuck. I understand everything except these 2 lines $low = $try + 1, next if $array->[$try] lt $word; $high = $try -1, next if $array->[$try] gt $w

help on example from "mastering algorithm with perl" on binary search

2009-06-27 Thread rich lee
Hello everyone, I am trying to read "mastering algorithm with perl" and below example has me bit stuck. I understand everything except these 2 lines $low = $try + 1, next if $array->[$try] lt $word; $high = $try -1, next if $array->[$try] gt $word; I understand what it's