in reply to Re: Having to specify $_
in thread Having to specify $_
I'd expect that $_ would be assigned during a for or foreach loop, but not during a while loop. Trypush @results, $_ foreach ($sth->fetchrow_hashref());
That will only work if the function actually returns a list (and in this case it doesn't.) It will not call the function repeatedly until it returns false.
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom