hash insertion with correct hierarchy :

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zcabeli
    New Member
    • Jan 2008
    • 51

    hash insertion with correct hierarchy :

    hello all,

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

    updon reading the following string:
    Code:
    module[x].sub-module[y].sub2-module[z] = 123123
    module[x].sub-module[y].sub2-module[z] = 112222
    module[x].sub-module[y].sub2-module[t] = 123123

    i'd like to insert it to hash according to it's hierarchy:
    Code:
    hash --> mudule[x] --> sub_mudule[y] --> sub2_mudule[z] --> 123123
    hash --> mudule[x] --> sub_mudule[y] --> sub2_mudule[z] --> 112222
    hash --> mudule[x] --> sub_mudule[y] --> sub2_mudule[t] --> 123123
    how should i do it ?

    thanks,
    Last edited by eWish; Feb 21 '08, 02:20 PM. Reason: Added Code Tags
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    What have you tried so far?

    Comment

    Working...