in reply to how to rm an element from an array?
Unless you have bigger plans for that yoink(), I'd scrap it altogether and just use straight, natural, intrinsic perl.
Start with IO's solution. Then you can extend the pattern-matching part as needed. And avoid the obfuscation of intent caused by using yoink().
|Replies are listed 'Best First'.|