in reply to An Array Without and Index
Hello Toppo, and welcome to the Monastery!
Two quick observations:
@row=(); while (my @row = $stm->fetchrow_array){
The my in the while loop creates a new @row variable each time through the loop. This is almost certainly not what you wanted. Update: You don’t want both! See the comment by Anonymous Monk, below.
the array @results don't appear to have an index
I don’t know what you’re trying to say here, but be assured that every element in every array has an index! See e.g. perldata.
I think more information is required before the monks can help you. Please provide a minimal but complete, working script that demonstrates the problem, along with sample input, and a description of the desired output.
HTH,
Athanasius <°(((>< contra mundum
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: An Array without an Index
by Anonymous Monk on Aug 13, 2012 at 09:10 UTC | |
by CountZero (Bishop) on Aug 13, 2012 at 13:54 UTC | |
by Anonymous Monk on Aug 13, 2012 at 14:10 UTC |