do { print "\nPlease enter a number: "; $in[$count] = ; chomp($in[$count]"; } while ($in[$count++] !~ /q/i