http://www.perlmonks.org?node_id=182030


in reply to DBI specification change

Hmm... Can't say that I like the newly documented behavior, but its always been a bit murky anyway. See this discussion where three of us so-called-saints all got it wrong. Perhaps in a future release, fetchrow_array should throw a warning when called in scalar context.

-Blake

Replies are listed 'Best First'.
Re: Re: DBI specification change
by cowens (Beadle) on Jul 18, 2002 at 17:11 UTC
    I agree that fetchrow_array in scalar context should throw a warning. Somthing like:
    $scalar = $sth->fetchrow_array better written as ($scalar) = $sth->fet +chrow_array