http://www.perlmonks.org?node_id=1101030


in reply to Re: fetchrow_array loop in perl 5.10
in thread fetchrow_array loop in perl 5.10

first fetch all items into an array and then execute the insert for each element of that array
Another option might be to keep two database handles, and run the search in one, and the insert in the second one.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^3: fetchrow_array loop in perl 5.10
by Anonymous Monk on Sep 18, 2014 at 13:43 UTC
    yep, we already found a workaround for it, but we wanted to find a centralized fix for it, this is an existing code (thousand lines of codes are coded this way) and was working in perl 5.8