Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In the above code the keys ({$tmp[0]}{$tmp[1]}{$tmp[2]}) are three. How can I change this code so that the no of keys can match the element of the array?. ie. if only one elt then hash must beforeach $key(sort {$a<=>$b} keys(%resultHoA)){ @tmp=@{$resultHoA{$key}};#[@sorted_cols]; $statushash{$tmp[0]}{$tmp[1]}{$tmp[2]}[0]='0'; }
if @tmp contains 2 elts hash mush be$statushash{$tmp[0]}[0]='0',
and so on. Can U help me out?. Thanks in Adv.$statushash{$tmp[0]}{$tmp[1]}[0]='0'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HoHoH Dynamicaly
by brian_d_foy (Abbot) on Dec 06, 2006 at 06:31 UTC | |
|
Re: HoHoH Dynamicaly
by ikegami (Patriarch) on Dec 06, 2006 at 05:12 UTC | |
|
Re: HoHoH Dynamicaly
by Roy Johnson (Monsignor) on Dec 06, 2006 at 18:16 UTC | |
|
Re: HoHoH Dynamicaly
by Anonymous Monk on Dec 06, 2006 at 12:04 UTC |