Shuaib Zahda wrote:
> Hello
> 
> I am doing a program in which I want to allow my user to keep keying in
> until they put semicolon then the prompt will process the data. It is
> something like mysql way. for example
> 
> mysql> select
>> * from
>> user;
> 
> I want to have something like this.
> 

while gets.chomp != ";"
  #code here





> the other question, how can I read the last char as char in a string
> because it keeps returning the ASCII value
> 
Sorry but i dont quite understand your 2nd question :(  Maybe elaborate 
a little?
-- 
Posted via http://www.ruby-forum.com/.