From: "Marcin Mielżyński" Date: 2006-03-09T21:03:41+09:00 Subject: Re: Convert String to Hash Nick Snels wrote: > Hi, > > I get a string inputted in my program, which I convert to a hash-like > string, like: > > sql = '"table_alias" => [],"original_string" => "select * from table"' > The simplest, although slow: sql = '"table_alias" => [],"original_string" => "select * from table"' hash = eval('{'+sql+'}') lopex