yermej / gmail.com wrote:
> On Oct 12, 12:13 am, Michael Linfield <globyy3... / hotmail.com> 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/.