splice(@a, $i, 1);This will decrement the number of elements in your array by 1. There is also a "delete" command in perl but it does not do quite this. Note that splice() works in-place. So do NOT do this:
@a = splice(@a, $i, 1); # WRONG, WRONG, WRONG