hi, I'm trying to create a little poker game and since I'm new at perl, I'm already stuck. I've gotten my program to shuffle, deal, and sort the hand. Now I need my program to check for winning hands.
Let's say that the player's hand has: 3 3 4 4 7
What kind of function can I write that will talie up the cards in the hand to give me 2 2 1? Right now 3 3 4 4 7 is a string. I can't use hashes on this.