I have a reference to an big array, and some of the elements (from some index to the end) need to get used to insert new rows in a DB.
Is there anyway I can create a reference to part of a bigger array? Or another way I can use a part of a array with DBI's execute_array function, without having Perl copy loads of data in the background?
Here's what I want to do more efficiently:
$sh->execute_array({}, [ @{$arrayref}[@indexes] ]);