Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: multidimensional array's

by NetWallah (Abbot)
on Dec 29, 2012 at 15:56 UTC ( #1010821=note: print w/replies, xml ) Need Help??

in reply to Re^4: multidimensional array's
in thread multidimensional array's

If you do not need the @allrows array, it is wasteful to store data into it. Try this instead:
my $loopcount = 0; while (my $row = $sth->fetchrow_arrayref() ) { my $title1 = $row->[1]; print "$title1\n"; $loopcount++; }; my $titlesfound = $loopcount;

             "By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."           -Confucius

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010821]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-10-23 19:31 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.