in reply to Re: Help with Guessing Game
in thread Help with Guessing Game

The problem domain seems only to be limited to numbers between one and ten. Forget push :) Just use an array as a boolean vector.

if ( $test[$guess]++ ){ print "Duplicate\n"; }

Dave