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
In reply to Re: An Array without an Index
by Athanasius
in thread An Array Without and Index
by Toppo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |