From: Nick Snels Date: 2006-03-09T21:41:26+09:00 Subject: Re: Convert String to Hash Hi, thanks for all the replies. I used the eval method and it worked!! The string doesn't come directly from user input. It first goes through a Perl sql parser and then into my program. So hopefully this doesn't introduce any security issues, but I will be aware of the possibility. Thanks for the help. Kind regards, Nick Bernhard 'elven' Stoeckner wrote: > Rob Pitt scribbled on Thursday 09 Mar 2006 13:01: > >> *throws banana ad Bernhard* >> >> no no no don't eval user supplied strings you are asking to be hacked :) > > Well, in certain local-only low-security scenarios it might be of use. I > wouldn't know where Nick takes his strings from. :} -- Posted via http://www.ruby-forum.com/.