in reply to Perl Blackjack
%deck=map { $t=($_%13); sprintf("%s of %s", $t>8?(('Jack','Queen','King','Ace')[$t-9]):($t+2), (('spades','hearts','clubs','diamons')[$_/13])) => (2..9,(10)x4,11)[$t] } 0..52 [download]