I am trying this:

mystring = gets
mystring.scan(/..$/) {|x| puts x}

It returns only the last character. Is it possible to add the above line
in loop?

-- 
Posted via http://www.ruby-forum.com/.