in reply to Re^2: splice help - deleting specific element
in thread splice help - deleting specific element

While not $_ eq $co isn't incorrect, I rather write $_ ne $co.

I like yours better too.

About duplicates: I assume whacking dups is actually what was intended based on the problem description, but I thought it would be worthwhile to mention that side-effect.