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.

the other question, how can I read the last char as char in a string
because it keeps returning the ASCII value

e.g.

str = "text here;"
len = str.len
semicolon = str[len - 1]
this gives me the ascii value.

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