Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Iterate multiple arrays with added text

by ww (Archbishop)
on May 23, 2017 at 20:34 UTC ( [id://1191021]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1191021]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-28 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found