Okay, I found a solution in the herdoc docs. I need to do this:
say "Hello -->{$name}<--";
According to the heredoc docs:
The angle bracket to the right of the variable makes it look like a hash index to Raku.
In reply to Re: Raku: problem with say() function (method?)
by 7stud
in thread Raku: problem with say() function
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |