A little fix: the line below must come before the "while()" $im_thinking_of=int(rand 10);
> while(){
> 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";
> last;
> }
>
> }
>
Josimar
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
