in reply to Nesting prepared DBI handles

This is probably not your problem here, but maybe worth mentioning anyway:

DBI re-uses existing hashes and arrays for building its data structures, so when you store a hashref from a previous fetchrow_hashref without copying it you might get bad surprises.

Replies are listed 'Best First'.
Re^2: Nesting prepared DBI handles
by WizardOfUz (Friar) on Nov 08, 2009 at 13:26 UTC

    Not yet:

    "By default a reference to a new hash is returned for each row. It is likely that a future version of the DBI will support an attribute which will enable the same hash to be reused for each row. This will give a significant performance boost, but it won't be enabled by default because of the risk of breaking old code."

    Please take a look at the DBI documentation