There is a whole Games namespace on CPAN. Maybe the game you are talking about is already there? If it isn't you can still check their code for inspiration.
holli
You can lead your users to water, but alas, you cannot drown them.
Comment on Re: Is Regexp::Grammars a suitable tool for recognising card game hands?