Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    use List::Util qw( shuffle );
    
  2. or download this
    {
       my %val; @val{2..10,qw(J Q K A)} = (2..14);
    ...
          return 'High Card';
       }
    }
    
  3. or download this
    {
       my @hand = (@ARGV
    ...
    
       print join(', ', @hand) . ' is a ' . hand_name(@hand) . "\n";
    }