#! /usr/bin/perl use CGI ':standard'; print "Content-type:html\n\n"; $dice1= int (rand(6)+1); $dice2= int (rand(6)+1); $rolla = param('rolla'); $rollb = param('rollb'); print ""; print ""; $total= $dice1+$dice2; print "your first roll was" ; print ""; #rollb won't show up# print ""; if (($total ==7)or($total ==11)){ print "you win!!!"; exit() } elsif (($total ==2) or ($total ==12)){ print "loser"; exit() } #I believe the problem with rollb is on this line# print "roll again"