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

I have to agree with NetWallah, this sounds like a you need a state-machine. Which is really what you have started doing already, although in a highly specific way. Your approach and code can only benefit from reading some of the theory about it, since it is a rather highly developed concept. There are a number of resources on the web for such things, and surely there is a CPAN module out there which would suit your needs.

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