Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 contemplating the Monastery: (1)
As of 2018-02-19 04:43 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (258 votes). Check out past polls.