From: Shuaib Zahda Date: 2007-10-18T11:15:38+09:00 Subject: Re: continuous input until semicolon reached yermej@gmail.com wrote: > On Oct 12, 12:13 am, Michael Linfield wrote: > Instead, try > > all_input = "" > while line = gets > line.chomp! > next if line.nil? > all_input << line > break if line[-1].chr == ';' > end > puts "got: #{all_input}" > I used this code and it works but I have a question and I need to confirm my answer. next if line.nil? next here is equivalent to continue in C. Am I right, i looked in ruby library, I did not find continue. Regards -- Posted via http://www.ruby-forum.com/.