Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Array can contain 'n' elements. For each element of array i need to create one level. Here is an Example: if arr hash 3 (may vary) elts hash should be like thisforeach $key(sort {$a<=>$b} keys(%resultHoA)){ $statushash{$resultHoA{$listcols[0]}[0]}='0'; }
I think the explains my requirement clearly than my description. Thanks in Adv.$hash{arr[1]}{arr[1]}{arr[2]}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Building Multi-Level Hash dynamically
by holli (Abbot) on Dec 05, 2006 at 13:17 UTC | |
|
Re: Building Multi-Level Hash dynamically
by madbombX (Hermit) on Dec 05, 2006 at 13:15 UTC | |
|
Re: Building Multi-Level Hash dynamically (diver)
by tye (Sage) on Dec 05, 2006 at 16:37 UTC | |
|
Re: Building Multi-Level Hash dynamically
by Firefly258 (Beadle) on Dec 05, 2006 at 13:20 UTC | |
by Joost (Canon) on Dec 05, 2006 at 16:09 UTC | |
by Firefly258 (Beadle) on Dec 05, 2006 at 18:31 UTC | |
by Joost (Canon) on Dec 05, 2006 at 23:24 UTC | |
by Joost (Canon) on Dec 05, 2006 at 23:42 UTC |