in reply to Re^2: Header file management
in thread Header file management

(I don't write semicolons after return and die etc. for the same reasons.)

This is only useful if they are positioned at the very end of a scope. Used as argument to statement modifiers without ending semicolon causes a syntax error at compile time, unless you put the semicolon at the beginning of the following line.

Or is it that I didn't get what you mean? in that case, please show me a working example.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^4: Header file management
by choroba (Cardinal) on Apr 30, 2018 at 11:06 UTC
    Modified return and die still need the semicolon, of course. If they aren't modified, they should be at the very end of scope, and that's the point.

    For an example, see my PerlMonks ChatterBox client.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,