in reply to Deleting an array entry

You may want to play around with splice.
perldoc -f splice