rampant selectrow_array misuse

Gervase Markham gerv at mozilla.org
Fri Aug 26 11:02:46 UTC 2005


David Miller wrote:
> Both of these functions, as their names imply, return arrays.

That's not actually true, as far as I can tell. DBI docs are strangely 
hard to find on the net, but I tend to use
http://www.he.net/info/mysql/dbi.html
or a more up-to-date copy thereof. (I'm linking to that one because I've 
just found my bookmark to perldoc.com is broken.)

"This utility method combines prepare, execute and fetchrow_array into a 
single call. If called in a list context it returns the first row of 
data from the statement. If called in a scalar context it returns the 
first field of the first row."

Gerv



More information about the developers mailing list