my @shrunk = @array[0 .. 5_000]; # Array slice. say size(\@shrunk); # 40072