Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail From: Siratinee Sukachai Newsgroups: comp.lang.ruby Subject: Split dot and equa sign by recursive Date: Fri, 22 Apr 2011 05:52:09 -0500 Organization: Service de news de lacave.net Lines: 20 Message-ID: <834998812ddf8cd759b85d568ed321db@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1303469620 79686 65.111.164.187 (22 Apr 2011 10:53:40 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Fri, 22 Apr 2011 10:53:40 +0000 (UTC) X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 382065 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <834998812ddf8cd759b85d568ed321db@ruby-forum.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3378 I need to do a function which can split dot and equa by recursive. But I don't have any ideas to do on recursive. This is the example of my strings Member.certPm=PM Certification projects.risks.Index.flash_downloading=Downloading report, please wait.. The numbers of dot it is different. I need to split these strings and set on hashes Member => {certPm => PM Certification} projects => {risks => {Index => {flash_downloading => Downloading report, please wait..}}} Do you have any guide for me to do this? -- Posted via http://www.ruby-forum.com/.