go ahead... be a heretic | |
PerlMonks |
Re: Creating multidimentional arrays dynamicallyby sflitman (Hermit) |
on Aug 13, 2010 at 05:54 UTC ( [id://854835]=note: print w/replies, xml ) | Need Help?? |
Here's a 2D example, using neat Perl syntax:
Extending this to three dimensions is trivially easy, just add another set of brackets after [$j], but then printing it gets harder. Read perllol
HTH,
In Section
Seekers of Perl Wisdom
|
|