in reply to References, hashes and arrays
What am I doing wrong here?Well, you gave us code, but you didn't tell us what you expect the code to do, and what is happening. And we can't run the code because we have no idea what is in $results. The choice of variable names in the second set of loops suggest something fishy is going on, but whether that is or isn't depends on the structure of $results, and what your intentions are.
One thing though, a block which only consists of a single assignment to a variable that's lexical to that block is not very useful - unless your RHS has some fetch magic.
Abigail
|
|---|