in reply to Better way to do this

It would really be nice to explain what you want to achieve. Reverse engineering your example is tedious...

Replies are listed 'Best First'.
Re^2: Better way to do this
by PetreAdi (Sexton) on Feb 20, 2016 at 18:51 UTC

    I want to extract aubarrays between array indexes (@idxs)

    The subroutine takes an hour

    Any idea for optimizing it??