7stud has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
The following code works as expected
use v6; my $name = "Joe"; say "Hello $name"; --output:-- Hello Joe
However, the following code produces an error:
use v6; my $name = "Joe"; say "Hello -->$name<--"; --output:-- ===SORRY!=== Error while compiling /Users/7stud/raku_programs/d.raku Unable to parse quote-words subscript; couldn't find '>' (correspondin +g '<' was at line 4) at /Users/7stud/raku_programs/d.raku:12 ------> <BOL>⏏<EOL> expecting any of: postfix
Obviously, there are some characters that cannot appear in a string, but I looked around and I couldn't find any information about that.
Also, in the error message what does the following mean:
------> <BOL>⏏<EOL>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Raku: problem with say() function (method?)
by 7stud (Deacon) on Feb 07, 2024 at 15:45 UTC | |
Re: Raku: problem with say() function (method?)
by LanX (Saint) on Feb 07, 2024 at 15:40 UTC | |
by 7stud (Deacon) on Feb 07, 2024 at 16:13 UTC |