in reply to removing x from a list

If you can determine the index of the element within the array, you can use the splice command to remove the element from the array, like this:

splice(@array, $indexToRemove,1);
This will remove 1 element from @array at the index $indexToRemove. If you'd like more explanation, go to: How do I completely remove an element from an array?

- Sherlock