Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Braces around a section of code

by LanX (Saint)
on Jun 26, 2019 at 14:58 UTC ( [id://11101946]=note: print w/replies, xml ) Need Help??


in reply to Braces around a section of code

Scoping as already mentioned by others is the most important benefit.

But your code doesn't seem to use any

Other motivations may be indentation of the inner code or wanting to apply loop control commands.

For details on the latter please see perlsyn#Basic-BLOCKs

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

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

    No recent polls found