Bart Lateur wrote:
> Yes, DBI makes use of it.
>
> # $sth is a statement handle
> while(my @row = $sth->fetchrow_array) {
> #another row of data...
> }
>
> If and only if the empty list is assigned to @row, then we're
> at the end of the records list.
Hm, I beg to disagree -- that's an array assignment, not a list assignment.
This would be more like it:
while(($name, $street, $age) = $sth->fetchrow_array) {
# do stuff
}
Cheers,
Philip
--
Philip Newton <[EMAIL PROTECTED]>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.