From: Michael Linfield Date: 2007-10-12T14:13:34+09:00 Subject: Re: continuous input until semicolon reached 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/.