From: 7stud -- Date: 2007-10-18T17:02:40+09:00 Subject: Re: continuous input until semicolon reached Shuaib Zahda wrote: > > 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. > str = "text here;" semicolon = str[-1, 1] -- Posted via http://www.ruby-forum.com/.