From: Christian Szegedy Date: 2002-06-07T17:34:21+09:00 Subject: Re: Unflatten Park Heesob wrote: > > Simple but awful solution. > > def unflatten(list) > eval list.inspect.gsub(/"\(",/ , '[').gsub(/"\)"/ , ']') > end > > Park Heesob. > > Sometimes it may work, but it's quite simple to construct more complicated cases for which it fails. E.g.: list = ["\"(","a"] unflatten(list) gives parse error. Best regards, Christian