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.
In reply to Re^3: splice help - deleting specific element
by mpeever
in thread splice help - deleting specific element
by kathys39
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |