in reply to Re: Boolean operators and list assignments
in thread Boolean operators and list assignments

The second example is clearer, but is effectively the same as the first, since comparison operators have higher precendence than logical operators anyway.
  • Comment on Re: Re: Boolean operators and list assignments

Replies are listed 'Best First'.
Re: Re: Re: Boolean operators and list assignments
by jreades (Friar) on Dec 21, 2000 at 02:21 UTC

    I'd look to exceptional cases as the problem since the logic looks ok (especially with the added parens).

    What happens if there are no rows returned?

    What happens if a DBI error occurs?

    I'll try to take more detailed look later, but it's been my experience that DBI can throw you some curves that are less than obvious.

      And on a related note, what happens if you place the comparison test ('<') first in the while loop?