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