From: Shashank Date Date: 2004-06-05T22:18:41+09:00 Subject: Re: Chars in Ruby "Georgy" wrote in message > Array to String: [97,98,99].map{|e|e.chr}.join --> "abc" > String to Array: "abc" ????????????? --> [97,98,99] How about: "abc".split('').collect{|e| e[0]} Just applied the inverse transforms of what you did to get Array to String ...and of course, as GR mentioned, you can pack/unpack. > E#Mail: 'naabbcaDaddaLryDwksvKmyw'.tr('a-zA-Z','0-9a-z.@') > > -- shanko