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


Code:
say 1 if;

Result:
===SORRY!===
Whitespace required after keyword 'if'
at ./test.pl:2
------> say 1 if⏏;
Whitespace required after keyword 'if'
at ./test.pl:2
------> say 1 if⏏;
Whitespace required after keyword 'if'
at ./test.pl:2
------> say 1 if⏏;
Whitespace required after keyword 'if'
at ./test.pl:2
------> say 1 if⏏;
Missing semicolon
at ./test.pl:2
------> say 1 if⏏;

OR

Code:
say 1 unless;

Result:
===SORRY!===
Whitespace required after keyword 'unless'
at ./test.pl:2
------> say 1 unless⏏;
Whitespace required after keyword 'unless'
at ./test.pl:2
------> say 1 unless⏏;
Whitespace required after keyword 'unless'
at ./test.pl:2
------> say 1 unless⏏;
Whitespace required after keyword 'unless'
at ./test.pl:2
------> say 1 unless⏏;
Confused
at ./test.pl:2
------> say 1 unless⏏;

Definitely there is no need to repeat that 4 four times. But it could also
print something useful.

Notice the difference – in one case it says "confused" but in another one
it wants a semicolon (which is obviously right there).

Reply via email to