Hi Vadim,
Thank you!
I opened issue #5049.
On Sun, Aug 28, 2022 at 12:56 AM Vadim Belman 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 <
>
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
> wrote:
>
> Hello,
> I noticed this behavior:
>
> [0] > my @a =
> [a b c d e]
> [1] > .say with $_ for @a
> ()
>
Hello,
I noticed this behavior:
[0] > my @a =
[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