By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,837 Members | 1,465 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,837 IT Pros & Developers. It's quick & easy.

hash insertion with correct hierarchy :

P: 51
hello all,

i'd like to make the following operation on hash:

updon reading the following string:
Expand|Select|Wrap|Line Numbers
  1. module[x].sub-module[y].sub2-module[z] = 123123
  2. module[x].sub-module[y].sub2-module[z] = 112222
  3. module[x].sub-module[y].sub2-module[t] = 123123

i'd like to insert it to hash according to it's hierarchy:
Expand|Select|Wrap|Line Numbers
  1. hash --> mudule[x] --> sub_mudule[y] --> sub2_mudule[z] --> 123123
  2. hash --> mudule[x] --> sub_mudule[y] --> sub2_mudule[z] --> 112222
  3. hash --> mudule[x] --> sub_mudule[y] --> sub2_mudule[t] --> 123123
how should i do it ?

thanks,
Feb 21 '08 #1
Share this Question
Share on Google+
1 Reply


KevinADC
Expert 2.5K+
P: 4,059
What have you tried so far?
Feb 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.