in reply to Poker module question
my $userinput = <STDIN>; #As,Qc,Td,6c,3h chomp $userinput; my @hand = split /,/, $userinput; my $score = ScoreHand(@hand); say $score; #6405
edit: you can also pass it what the module refers to as a ShortHand. This seems to be a string containing all the cards in your hand, but appears to give errors very easily.
|
|---|