perl - General check of missing semicolon -
as perl beginner getting compilation errors , have search lot find it. in end missing semicolon @ end of line. syntax errors missing semicolon checked perl not in general. there way check?
edit:
i know perl::critic can't use atm. , don't know if checks missing semicolon in general.
because semicolons mean in perl , aren't there decoration, it's not possible tool (even perl interpreter itself) know in every case whether meant leave off semi-colon or not. thus, there's no general-case answer question; you'll need go through code , make sure it's correct.
as mentioned in comments, there various tricks can try editor expedite process of finding potentially-incorrect lines; must, however, either examine , fix these hand or risk introducing new problems.
Comments
Post a Comment