Help for this page

Select Code to Download


  1. or download this
    CHUNK:
    while ( ( my $pos = pos $sentence ) < length $sentence ) { 
    ...
        }
        last CHUNK;
    }
    
  2. or download this
    my @split = split /($phrase1|$phrase2)/, $sentence;
    @phrases = @split[map { 2 * $_ + 1 } 0 .. ($#split - 1)/2];