in reply to Unusual (and pointless?) idiom in old code
I think the original idea behind this idiom was to keep a number of elements, for example, 3, from the end of the array, and probably into a different variable, removing them from the original array:
(which is the same as@trailing = splice(@foobar, @foobar-3);
but that won't work for 0)@trailing = splice(@foobar, -3);
|
|---|