in reply to Checking lots of conditions...ORed and ANDed

You might want to take a look at Deterministic Finite Automata.

I have not used this in perl, but the concept is simple and logical, and avoids a lot of programming errors - config errors are discovered and corrected easier than hard-coded condition errors.

Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarantees offense.

  • Comment on Re: Checking lots of conditions...ORed and ANDed