#!/user/bin/perl -w $im_thinking_of=int(rand 10); print "Pick a number:"; $guess=<STDIN>; chomp $guess; if ($guess>$im_thinking_of) { print "You guessed too high!\n"; } elsif ($guess < $im_thinking_of) { print "You guessed too low!\n"; } else { print "You got it right!\n"; } I'm trying to make that ^^^ not end if you guess the number wrong. The chapter im reading is using the "for" and "while" loop, but i guess I dont know enough yet to do this. Can someone help?
--------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!