The stupid question is the question not asked | |
PerlMonks |
Re: round-robin on varying sequenceby Arien (Pilgrim) |
on Sep 07, 2002 at 05:41 UTC ( [id://195843]=note: print w/replies, xml ) | Need Help?? |
How about chucking the $index and rotating the array (shift and push) every time you get an element (which is now always the first)? remove is now as trivial as it ought to be:
— Arien
In Section
Cool Uses for Perl
|
|