Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Iterate multiple arrays with added text

by ww (Archbishop)
on May 23, 2017 at 20:34 UTC ( #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
Node Status?
node history
Node Type: note [id://1191021]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-09-27 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (142 votes). Check out past polls.

    Notices?