... my $p=0; push @result, ($p++)x$_ for @count; ... [download]
In reply to Re: Problem creating array by mwah in thread Problem creating array by Subop