A while ago I wrote an awk program and I swear that the only way to extract information from multiple arrays with the same set of indices was to use nested for loops:
for (title in array1)
for (title2 in array2)
if (title=title2)
....
sort of thing..
Now, it seems to be working if I do:
for (title in array1)
print array1[title], array2[title]
Am I going nuts? Is it a possible result of a version change? Or did I just stuff up the first time I wrote something and that's why I ended up using nested loops instead??
for (title in array1)
for (title2 in array2)
if (title=title2)
....
sort of thing..
Now, it seems to be working if I do:
for (title in array1)
print array1[title], array2[title]
Am I going nuts? Is it a possible result of a version change? Or did I just stuff up the first time I wrote something and that's why I ended up using nested loops instead??