Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Commonly accepted style guide?

by Anonymous Monk
on Sep 26, 2005 at 09:16 UTC ( #495037=note: print w/ replies, xml ) Need Help??


in reply to Re: Commonly accepted style guide?
in thread Commonly accepted style guide?

Any failure to use strict and warnings, or any use of no strict without a comment explaining why this is necessary.

Using 'no strict' without a comment is something you pay attention to, and I presume you flag it negatively? I disagree. I consider commenting the obvious as a sign of an immature or insecure coder. Commenting the obvious includes the classical:

i++; /* Increment i */
but doesn't stop with:
{ no strict 'refs'; *{$caller} = &{$something}; }
or
my @list = do {no warnings; qw /foo #bar baz,/};

Using backticks in void context. Or any other construct that returns a list, e.g., map

Nothing returns a list in void context. Lists are only returned in list context. And programmers who think that 'map' in void context creates a list internally are showing signs of not keeping up with modern Perl development. ;-).


Comment on Re^2: Commonly accepted style guide?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (18)
As of 2015-07-28 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls