my $number = (1..10).pick; repeat {} until prompt("Guess a number: ") == $number; say "Guessed right!";
Last updated 1 year ago