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 reply to Re: Re: Having to specify $_
by sauoq
in thread Having to specify $_
by mt2k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |