in reply to Re^4: Limit loop
in thread Limit loop

splice @favs, 25;

Note that splice-ing past the end of the array results in a warning in earlier Perl versions:

Win8 Strawberry (32) Wed 08/31/2022 15:05:47 C:\@Work\Perl\monks >perl -wMstrict -MData::Dump=dd -le "my @ra = ('a' .. 'd'); splice @r +a, 10; dd \@ra" splice() offset past end of array at -e line 1. ["a" .. "d"]
(I don't know with what version this warning was suppressed.)

Give a man a fish:  <%-{-{-{-<