Skip to content

Conversation

jubilatious1
Copy link
Collaborator

Current code does not work because $_ is the invocant of .say within the block.
Pointy block variable must match outside/inside the block, and this pull request fixes the issue.

The problem

for $*IN.lines -> $line { .say } does not work.

Solution provided

for $*IN.lines -> $ln { $ln.say } works.

Current code does not work because `$_` is the invocant of `.say` within the block. Pointy block variable must match outside/inside the block, and this pull request fixes the issue.
Copy link
Contributor

@librasteve librasteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@librasteve librasteve merged commit d4a957c into main Oct 19, 2025
1 check passed
@librasteve librasteve deleted the jubilatious1-patch-1 branch October 19, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants