Write a foreach loop and use the syntax below (basically perl but a little weird looking)
So I can loop through multiple arrays in the same iteration and not have to have arrays of arrays or other crazy stuff.
Also I would like to be able to pick a "random order" of ALL of the arrays, but the indexes are linked, I.E.
@array1 = lah,bl,a,we
@array2 = 1,2,3,4
I would love to see a "random function" or keyword, I can use that will rearrange it to something like this:
@array1 = bl, we, a, lah
@array2 = 2,4,3,1
(basically the original indices stay matched).
Now of course I could write a tool which will do the second one. and I could write a "templating language" which would essentially replace
Post a Comment