in reply to delete n elements of an array

$ perl -le' my @array = 1 .. 20; print "@array"; splice @array, 0, 15; print "@array"; ' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 16 17 18 19 20

Replies are listed 'Best First'.
Re^2: delete n elements of an array
by Anonymous Monk on Nov 25, 2012 at 13:11 UTC

    Thanks monk, 1 more doubt. what should I do if I want to Pop 15 elements, ie, from last I want to cut. Thanks in advance.