> > # With the new :ov (:overlap) modifier, the current rule will match at > > all possible character positions (including overlapping) and return all > > matches in a list context, or a disjunction of matches in a scalar > > context. The first match at any position is returned. > > > > $str = "abracadabra"; > > > > @substrings = $str ~~ m:overlap/ a (.*) a /; > > > > # bracadabr cadabr dabr br > > Maybe I'm wrong here, but I'd get Just found the answer, sorry.
But that gets me to the next question, ie I don't understand the difference between exhaustive and overlap. Is it that overlap fixes the first point of the pattern match and does further scanning for all possibilities, and exhaustive then *after* this processing searches for another first point? Regards, Phil