Hi Vadim, Thank you! I opened issue #5049. On Sun, Aug 28, 2022 at 12:56 AM Vadim Belman <vr...@lflat.org> wrote:
> > Looks like it worth a bug report. I was probably stumbling upon this too > for a couple of times. > > Best regards, > Vadim Belman > > > On Aug 27, 2022, at 2:24 AM, Fernando Santagata < > nando.santag...@gmail.com> wrote: > > > > Hello, > > I noticed this behavior: > > > > [0] > my @a = <a b c d e> > > [a b c d e] > > [1] > .say with $_ for @a > > () > > [2] > .say if .defined for @a > > a > > b > > c > > d > > e > > [3] > (.say with $_) for @a > > a > > b > > c > > d > > e > > [4] > (.say if .defined) for @a > > a > > b > > c > > d > > e > > > > Apparently in this case "with" works only as a statement modifier while > "if" works both ways. > > Is this a known behavior with well understood reasons, or should I open > an issue? > > > > -- > > Fernando Santagata > > -- Fernando Santagata