in reply to DBI::bind_colums throws error when element of binding hash is deleteed

DBI's bind_columns is not just copying data into your hash. It does things at a low-level to efficiently alias the data from the query into the variables you bind to. Modifying variables that you give to bind_columns is essentially not allowed -- you can read them, but that's all.

If you want to modify the data, don't use bind_columns. Use fetchrow_hashref or something instead.

  • Comment on Re: DBI::bind_colums throws error when element of binding hash is deleteed