Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Header file management

by shmem (Chancellor)
on Apr 30, 2018 at 10:11 UTC ( [id://1213813]=note: print w/replies, xml ) Need Help??


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,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-23 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found