On Mon Mar 30 11:06:01 2009, TBONE wrote:
Show quoted text> It would be nice if there were an option to cache the results of calling
> $dsr->hash()...
>
> this way, multiple calls to ->hash() would work instead of failing on
> all times after the first call.
I disagree this behavior should be changed. The documentation say that
this method: "Fetches a single row and returns a hash reference".
"Fetch" is used consistently throughout the documentation to mean
something like: "shift" or "pop". It always gets the next row. This is
done consistently throughout this module, and models the same
documentation and behavior in the underlying DBI.
If any change should be made, perhaps a note should be added to clarify
what "fetch" means, or the documentation should more clearly refer to a
*next* row:
"Fetches the next row and returns a hash reference"