In Perl 6, you also don't need to explicitly use $_ in this case if you use the method form of say.
for lines() {
.say
}
On Sun, 28 Jul 2019 23:13:08 -0700
Joseph Brenner <[email protected]> wrote:
> [...]
>
> The perl6 version would be something like:
>
> #!/usr/bin/env perl6
> use v6;
> for lines() {
> say $_;
> }
>
> [...]
--
With kind regards,
Patrick Spek
www: https://www.tyil.nl/
mail: [email protected]
pgp: 1660 F6A2 DFA7 5347 322A 4DC0 7A6A C285 E2D9 8827
social: https://soc.fglt.nl/tyil
git: https://gitlab.com/tyil/
pgpAH4BWPADHK.pgp
Description: OpenPGP digital signature
