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/.