# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #131360]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=131360 >
Code:
say hello world’
Result:
===SORRY!=== Error while compiling -e
Bogus postfix
at -e:1
------> say hello world⏏’
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
statement modifier loop
The way I see this error message is that it is effectively equivalent to just
saying “Confused”. However, in this case it is most likely that somebody forgot
to write an initial quote (‘), so the error message can say exactly that.
Please note that starting a string literal with ’ is also possible (e.g. say
hello ’foo’), so there is a chance that this new error message will be wrong
sometimes. I don't know if that would be a problem.
This bug report is motivated by this task from the thinkperl6 book:
1. If you are trying to print a string, what happens if you leave out one of
the quotation marks, or both?