RosettaCodeData/Task/Playing-cards/Perl/playing-cards-2.pl
2023-07-01 13:44:08 -04:00

5 lines
136 B
Perl

my $deck = Playing_Card_Deck->new;
$deck->shuffle;
my %card = $deck->deal;
print uc("$card{pip} OF $card{suit}\n");
$deck->print_cards;