Minor note. Would you want this:
> sub &infix:<myeq>(Str $a, Str $b) { return ($a eq $b) ? $a : ''; } to be: sub &infix:<myeq>(Str $a, Str $b) { return ($a eq $b) ? $a but bool::true: ''; } (Is that the right way to do it ?) Paul
Minor note. Would you want this:
> sub &infix:<myeq>(Str $a, Str $b) { return ($a eq $b) ? $a : ''; } to be: sub &infix:<myeq>(Str $a, Str $b) { return ($a eq $b) ? $a but bool::true: ''; } (Is that the right way to do it ?) Paul