in reply to Maintain a certain number of elements inside an array?

One more way to do it: splice @topten, 10; That lops off all the elements at index 10 and higher.