If this is about:
These may be cascaded:
with $s.index("a") { "Found a at $_" }
orwith $s.index("b") { "Found b at $_" }
orwith $s.index("c") { "Found c at $_" }
else { "Didn't find a, b or c” }
then the code is correct. What would be the point of searching for “a” again and again if it wasn’t found the first time?
Liz