my $i = 0; while ($i < @r) { if (r($r[$i]) { push @l, (splice @r, $i, 1); next; } $i++; } [download]
In reply to Re: Golf: List spliting by satchboost in thread Golf: List spliting by Masem