http://qs321.pair.com?node_id=1191021


in reply to Re^2: Iterate multiple arrays with added text
in thread Iterate multiple arrays with added text

You've added some vars -- @thumbs and @schedpubs Deus ex machina EXCEPT that the 'god out of a machine' reference is to a theatrical/scripting device that solves the author's problem by injecting an un-foreshadowed solution (Superman -- never mentioned before -- arrives to save the damsel in distress; Dr. X -- the protagonist -- without any prior lab experience shown comes up with the magic potion to keep the sub shining; etc.) Here, the arrays certainly unforeshadowed, but lacking our psi powers (only temporarily, I assure you) we are (well, I am) at a loss for anything more helpful than a WAG.

That WAG is that your data is inconsistent;, ie, doesn't have all the fields in each record (something you're banking on with the script you showed us [HINT, Hint: show all your relevant code, but pared down to the smallest example that illustrates your problem].

If that's any serious chance that my WAG is on target, you'll do well to read about ways to test for the existance of data you're importing/processing and about transforming missing data to something that won't choke your program when your input (or lack thereof in this case) makes a variable "uninitialized"(the ternary operator for an off the top of my head notion).