in reply to Re^3: multidimensional array's
in thread multidimensional array's
@All: Thnx a lot for your helpful answers.
With some additional reading and fiddling around with the syntax I have figured this out now.
my @allrows =(); while ($row = $sth->fetchrow_arrayref() ) { push @allrows,[@$row]; }; my $titlesfound = @allrows; # Contains the number of results #Show that it works: $loopcount = 0; foreach (@allrows) { my $title1 = ($allrows[$loopcount][1]); print "$title1\n"; $loopcount++; };
/emgi
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: multidimensional array's
by NetWallah (Canon) on Dec 29, 2012 at 15:56 UTC |
In Section
Seekers of Perl Wisdom