Hi --

On Mon, 23 Aug 2004, Graham Nicholls wrote:

> Can string.tr (and tr!) use octal values?
> 
> I can do tr '\234' '\273' to print £ symbols; how might I do this in Ruby,
> please?

Just add a comma :-)

  "S".tr("\123","\124")
  => "T"


David

-- 
David A. Black
dblack / wobblini.net