In Operators§
See primary documentation in context for infix ff^
sub infix:<ff^>(Mu $a, Mu $b)
Works like ff, except it does not return True
for items matching the stop condition (including items that first matched the start condition).
my @list = <X A B C Y>; say $_ if /A/ ff /C/ for @list; # OUTPUT: «ABC» say $_ if /A/ ff^ /C/ for @list; # OUTPUT: «AB»
The sed-like version can be found in fff^.
This operator cannot be overloaded, as it's handled specially by the compiler.