in reply to Re^3: How can I delete an element in a foreach cycle?
in thread How can I delete an element in a foreach cycle?

Well, the question was how to delete from a foreach cycle; a grep isn't one. I presumed the "delete if equal to a specific value" was an example. I prefer
foreach (...) { multiple lines of statements }
over
@array = grep { multiple lines of statements } @array;