shilpam has asked for the wisdom of the Perl Monks concerning the following question:
How can I construct this kind of array? Also how do I access the data easily?$a = "fruits"; $b = "birds"; $c = "p"; $d = "g"; $e = "c"; @array1[$a][$c]="peach"; @array1[$a][$d]="grapes"; @array1[$b][$c]="parrot"; @array1[$b][$e]="crow";
20040728 Edit by ysth: remove <BR>'s from within code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multi dimension array
by davido (Cardinal) on Jul 28, 2004 at 06:11 UTC | |
|
Re: multi dimension array
by ccn (Vicar) on Jul 28, 2004 at 06:13 UTC |