Thank you for all the replies.

I didn't know about the interpolation without {}.

The way I first saw the problem was :
I have a program (non-ruby) which dumps items out of a database in a 
format which is compatible with "inspect".

So, to read this, I was using "eval".
eg., text='"ABC\267#$"'
     data=eval(text)

It just so happened that one of the data items contained "#$".

My workaround for the moment is : data=eval(text.gsub("#",'\\043'))
Any better suggestions ?

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