On Fri, 16 Jul 2004, Tim Bunce wrote:
> Checking $sth->{Active} adds extra safety. Something like this:
>
> while(($row = eval { $sth->fetchrow_arrayref }) || ($@ && $sth->{Active})) {
> next unless $row;
> ..
> }
Ok, maybe
while($sth->{Active}) {
$row = eval { $sth->fetchrow_arrayref } || next;
...
}
would look more elegant. Anyway TMTOWTDI.
Vadim.
