Do you mean "undefined", or undef? It can't be undef if you are walking through the keys of a hash. What value does it have at the top of the loop?
-- Randal L. Schwartz, Perl hacker | [reply] |
i meant "undefined" in the sense that it's simply retuning blank when printed or called in any way.
the value it (should) have is a number which it gets from the results of another SQL query. I've done multiple tries with the query in and out of the program, placed prints and such, and it returns just fine. i can place prints in just before the definition of the hash for the arrays that make it up and they come out fine.
| [reply] |
Ahh, you mean "blank" when you say "undefined". That's why I asked.
Because a blank would not be legal in your SQL syntax. That's why you should
use DBI and DBI's placeholders instead of doing it the hard-to-diagnose way.
And that's also why I asked you what "undefined" meant. Because I never would
have guessed that you meant "blank". {grin}
footnote:
Ahh, being a customer support person. It's all coming back to me now about
why I usually don't do this kind of stuff for free.
|
Well, I agree with the others in this thread, and what people are telling you
in the chatterbox as I type this:
You need to get a small example of what isn't working, and post that. Because the
small snippets you are posting are working just fine.
-- Randal L. Schwartz, Perl hacker
| [reply] |