note
AnomalousMonk
<blockquote><i><c>
splice @favs, 25;
</C></I></BLOCKQUOTE>
<p>
Note that [doc://splice]-ing past the end of the array results in a warning in earlier Perl versions:
<c>
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 @ra, 10; dd \@ra"
splice() offset past end of array at -e line 1.
["a" .. "d"]
</C>
(I don't know with what version this warning was suppressed.)
</P>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-634253">
<hr><p>Give a man a fish<b>:</B> <c> <%-{-{-{-<</C></P>
</div></div>
11146507
11146519