my @choices = ("yes", "no", "y", "n"); my $choice = query("Can you use an array for the choices?", "YES", @choices); my $otherChoice = query("Can you use an invalid default to force them to type in their choice?", "yes/no", "yes", "y"); my $finalChoice = query("Oh, just enter whatever you want.");