in reply to Re: Empty Hash?
in thread Empty Hash?

From the DBI docs:

"use of the rows method or $DBI::rows with SELECT statements is not recommended"

Replies are listed 'Best First'.
Re^3: Empty Hash?
by superfrink (Curate) on Jan 01, 2005 at 01:16 UTC
    As soon as I read that I wanted to know why. So I looked it up. Here is a bit more context:
    For select statements it is generally not possible to know how many rows will be returned except by fetching them all. Some drivers will return the number of rows the application has fetched so far but others may return -1 until all rows have been fetched. So, use of the rows method, or $DBI::rows, with select statements is not recommended.