There's more than one way to do things | |
PerlMonks |
Re: Checking lots of conditions...ORed and ANDedby stvn (Monsignor) |
on Jun 08, 2004 at 17:38 UTC ( [id://362455]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Meditations
|
|