in reply to deleting array elements(efficiency/critique)
That way you don't have to go through a garbage collection stage later, but you may not gain much in speed since splice is slower that delete.# delete $array[$x]; # $array[$x] = undef; splice @array, $x, 1;
|
|---|