# New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
# Please include the string:  [perl #130261]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130261 >


Code:
say ‘hello';
say 42;
say 50;

Result:
===SORRY!=== Error while compiling -e
Unable to parse expression in smart single quotes; couldn't find final "’" 
at -e:3
------> say 50;⏏<EOL>
    expecting any of:
        argument list
        smart single quotes
        term

While the error message is right, it would be better if it also printed some 
information on where the initial curly quote is. As an example, see what 
happens if you try to do the same thing with a multiline comment (RT #125247):

Code:
say #`‘hello';
say 42;
say 50;

Result:
===SORRY!=== Error while compiling -e
Couldn't find terminator ’ (corresponding ‘ was at line 1)
at -e:3
------> say 50;⏏<EOL>
    expecting any of:
        ’

Reply via email to