On Aug 25, 6:09 am, [EMAIL PROTECTED] (Chas Owens) wrote:

> Ah, I knew there was a reason beyond readability that I preferred
> fetchrow_hashref:
>
> from perldoc DBI
>        "fetchrow_arrayref"
>            Note that the same array reference is returned for each fetch,

>        "fetchrow_hashref"
>            By default a reference to a new hash is returned for each row.  It

Aha!!  So maybe that's why I never knew about this feature.  I only
ever use fetchrow_hashref, so I never got bit by the reusing of array
references.

Thanks very much for pointing that out, Chas.

Paul Lalli


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to