An obvious solution would be snipbut that's nowhere as perlish or short as I'd like it to be.
Boring and obviously correct beats clever and potentially wrong, at least in my books. There's nothing like complexity to introduce bugs into software...
Comment on Re: Inserting an element into an array after a certain element