in reply to DBI::fetchall_arrayref() error
while (my $rows = $sth->fetchall_arrayref(undef, 3)) { # ^ this condition is always true # why? because when there is nothing to fetch, # $rows is reference to an empty array, not undef last if ($#$rows < 0); # break out of infinite loop for (@$rows) { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI::fetchall_arrayref() error
by pg (Canon) on Jan 12, 2004 at 01:55 UTC | |
by Roger (Parson) on Jan 12, 2004 at 02:34 UTC | |
by pg (Canon) on Jan 12, 2004 at 03:02 UTC |