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
In reply to Re^2: Help with Guessing Game
by davido
in thread Help with Guessing Game
by dj_jodo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |