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 > On 11 Aug 2015, at 06:08, Richard Hainsworth <rnhainswo...@gmail.com> wrote: > > Is there an error in the cascade? Shouldn't the indices be 'a', 'b', 'c'; not > 'a','a','a' ? > > On 08/10/2015 11:26 PM, yary wrote: >> "with", "without" look awesome. >> >> -y >> >> On Sat, Aug 8, 2015 at 2:38 PM, GitHub <nore...@github.com> wrote: >> Branch: refs/heads/master >> Home: https://github.com/perl6/specs >> Commit: 614b6f36e1cae4c787e378bc6ab2afa1f86de1f0 >> >> https://github.com/perl6/specs/commit/614b6f36e1cae4c787e378bc6ab2afa1f86de1f0 >> Author: TimToady <la...@wall.org> >> Date: 2015-08-08 (Sat, 08 Aug 2015) >> >> Changed paths: >> M S04-control.pod >> >> Log Message: >> ----------- >> doc with/without >> >> >> >