Help for this page

Select Code to Download


  1. or download this
    /^(.*?)(?:, \1)*\z/;
    my $count = (length($_)+2)/(length($1)+2);
    
  2. or download this
    for (
       '1, 2, 5, 1, 2, 5, 1, 2, 5',
    ...
          print("$_: $count\n");
       }
    }