From: Dave Thomas Date: 2001-08-30T01:00:50+09:00 Subject: [ruby-talk:20543] Re: (1) ASCII Code, (2) ()-operator Pierre-Charles David writes: > > I can do it for 'a' by saying ?a ... but how about special > > characters and whitespace ? > > > 'a'[0] is the same as ?a. Use " "[0], "\t"[0]... You can generate character constants for any characters: page down about 2-3 pages in http://www.rubycentral.com/book/language.html under Integer and Floating Point Numbers. So a tab could be ?\C-i Dave