in reply to Deleting a value in a list

And now to answer your question:
@array = grep !/$bad_ip/, @array;
But you should really should title your nodes better, since I almost wanted to answer with this:
splice @array, $index, 1;
Granted, I should've read your question before I posted :)

[ ar0n -- want job (boston) ]