in reply to how to rm an element from an array?

@arr=grep $_ ne $var, @arr;