yoda54 has asked for the wisdom of the Perl Monks concerning the following question:
I've got a bunch of data in the __DATA__ in the following format:
__DATA__
globalkey:key2:key3:key4:ARRAY VALUE
globalkey:key2:key3:key4:key5:ARRAY VALUE
globalkey:key2:key3:key4:key5:any arbitrary number of keys:ARRAY VALUE
So I'd like to build a HofHofH...ARRAY for all this data. The last item is always an array value but I have an arbitrary number of keys. Whats the easiest way to build this? Thanks for any help!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need some help building a data structure.
by lostjimmy (Chaplain) on May 02, 2009 at 05:25 UTC | |
|
Re: Need some help building a data structure.
by FunkyMonk (Bishop) on May 02, 2009 at 09:21 UTC | |
by lostjimmy (Chaplain) on May 02, 2009 at 16:05 UTC | |
|
Re: Need some help building a data structure.
by holli (Abbot) on May 03, 2009 at 13:47 UTC | |
|
Re: Need some help building a data structure.
by spx2 (Deacon) on May 02, 2009 at 06:38 UTC | |
by Anonymous Monk on May 02, 2009 at 07:33 UTC | |
by spx2 (Deacon) on May 02, 2009 at 07:53 UTC | |
by Anonymous Monk on May 02, 2009 at 08:08 UTC | |
by Anonymous Monk on May 02, 2009 at 08:17 UTC | |
|
Re: Need some help building a data structure.
by parv (Parson) on May 02, 2009 at 09:41 UTC |