P is for Practical | |
PerlMonks |
Re: Fun with two-dimensional arraysby arturo (Vicar) |
on Aug 09, 2001 at 21:01 UTC ( [id://103500]=note: print w/replies, xml ) | Need Help?? |
No need to hardcode the values. You could set variables (or constants) to hold them, and put those in there. Or if you want to get even more "dynamic", you can use $#array to get the highest index of @array ($#$arrayref, btw =). I forget which module you can use to determine these values ahead of time. Now, I'm not *certain* of what you mean by "wrong order", but you can always do
as well. HTH! update Oh, I get it now. You want to process row-by-row, you get column-by-column. Sorry bout 'dat.
In Section
Seekers of Perl Wisdom
|
|