Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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}; }
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. ;-).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://495037]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-03-29 17:16 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (352 votes). Check out past polls.