$continue = some invalid value; while ($continue is not a valid value) { print out the prompt; chomp ($continue = ); # unchanged. }