develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134183] Suggestion for "use"/"no" in expression errors

From:
Dan Book
Date:
June 7, 2019 18:57
Subject:
[perl #134183] Suggestion for "use"/"no" in expression errors
Message ID:
rt-4.0.24-6254-1559933820-1797.134183-75-0@perl.org
# New Ticket Created by  Dan Book 
# Please include the string:  [perl #134183]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=134183 >


The errors '"use" not allowed in expression' and '"no" not allowed in
expression' (
https://perldoc.pl/5.30.0/perldiag#%22use%22-not-allowed-in-expression) may
be unintentionally tripped when a previous statement is unterminated.
Perhaps it could suggest something like '(perhaps missing semicolon?)'
similar to other suggestions added to warnings/errors.

-Dan

(Perl)




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About