in reply to removing element from an array
You mean remove the first element of an array? perldoc -f shift? (or are you looking for pop? Or splice?)