Help for this page

Select Code to Download


  1. or download this
    sub inclusive {
      my ($big, $little) = @_;
      $big =~ join(
    ...
        join('', sort split //, $little) =~ /((.)\2*)/gs;
      );
    }
    
  2. or download this
    sub inclusive {
      ($chunk, $word) = @_;  # sorry, no 'my' here
      my $r;
    ...
      }x;
      scalar $chunk =~ $r;
    }