Agreed, splice was the wrong idea. How do you like this one?
sub remove_items { $index -= grep { $_ < $index } @_; delete @items[@_]; @items = grep {defined} @items; }
I dislike the use of broader scoped $index and @items in this.
After Compline,
Zaxo
In reply to Re: Re: Re: round-robin on varying sequence
by Zaxo
in thread round-robin on varying sequence
by dpuu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |