in reply to DBI::fetchall_arrayref() error
which doesn't look that great, with the two lasts and the always-true while $ref (unless some DBD decides to return undef on failure)... can anyone clean it up?while (my $rows = $sth->fetchall_arrayref( [@slice], $maxrows)) { last unless @$rows; # do stuff last if @$rows < $maxrows; } die $sth->errstr if $sth->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: DBI::fetchall_arrayref() error
by Anonymous Monk on Jan 12, 2004 at 18:01 UTC |