Help for this page

Select Code to Download


  1. or download this
    # With "x"
    for my $i (0..$#count) {
        push @result, ($i) x $count[$i];
    }
    
  2. or download this
    # Without "x"
    for my $i (0..$#count) {
    ...
            push @result, $i;
        }
    }