#!/usr/bin/perl srand; print "How much money are you playing?"; $total = ; print "What is your bet? "; $bet = ; print "Here's your first card: "; $draw1 = int &draw; print $draw1; print "\nDealer has "; $dDraw = int &draw; print "\n $dDraw"; print "Would you like another card? y/n"; $another = ; if ($another == 'y') { do{ $count = 2; print "You're $count card is: \n"; $draw2 = int &draw; print $draw2; print "Dealer has "; $dDraw = int &draw; print "$dDraw "; $count ++; $total = $draw1 + $draw2; print "\nWould you like another card? y/n"; $another = ; }while ($total>0 && $another == 'y'); } else {if ($another == 'n') { print "$draw1 $draw2 ";}} sub draw { $draw = int rand(10); }