Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: my within brackets

by Bod (Curate)
on Oct 14, 2021 at 20:04 UTC ( #11137543=note: print w/replies, xml ) Need Help??


in reply to Re: my within brackets
in thread my within brackets

the usual and customary way to write that code

Yes - I would always write it as my ($x, $y).
It was precisely because it was not written that way that I noticed it as odd!

WRT brackets in the split, I used to include them but have moved away from doing so as I feel it is easier to read without them. There was a time when I used brackets for virtually everything, including print statements! I do use them where they are not strictly necessary any time that precedence might be in less then obvious.

Replies are listed 'Best First'.
Re^3: my within brackets
by talexb (Chancellor) on Oct 15, 2021 at 16:23 UTC

    Brackets help me visualize what the code is doing much faster. Looking at code without brackets just takes me longer to process. I write my code in a specific way, so I can read it as quickly and effortlessly as possible. :)

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2022-05-21 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?