splice @favs, 25;
Note that splice-ing past the end of the array results in a warning in earlier Perl versions:
(I don't know with what version this warning was suppressed.)Win8 Strawberry 5.8.9.5 (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"]
Give a man a fish: <%-{-{-{-<
In reply to Re^5: Limit loop
by AnomalousMonk
in thread Limit loop
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |