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 <doom...@gmail.com> 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: p.s...@tyil.nl pgp: 1660 F6A2 DFA7 5347 322A 4DC0 7A6A C285 E2D9 8827 social: https://soc.fglt.nl/tyil git: https://gitlab.com/tyil/
pgpStZXcRId3W.pgp
Description: OpenPGP digital signature