in reply to Problem with Tie::RegexpHash
and evaluates left to right. I think the original author meant to short-circuit, but somehow reversed the comparisons.# while ( ($key ne $self->{KEYS}->[ $i ]) and # ($i < $self->{COUNT}) ) { while ( ($i < $self->{COUNT}) and ($key ne $self->{KEYS}->[ $i ]) ) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Problem with Tie::RegexpHash
by robartes (Priest) on Oct 10, 2002 at 18:27 UTC |