Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Pathologically Eclectic Rubbish Lister
 
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 avoiding work at the Monastery: (10)
As of 2014-04-17 11:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (445 votes), past polls