Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
We don't bite newbies here... much
 
PerlMonks  

Re^2: Module Announcement: Perl-Critic-1.01

by stvn (Monsignor)
on Jan 26, 2007 at 16:25 UTC ( #596745=note: print w/ replies, xml ) Need Help??


in reply to Re: Module Announcement: Perl-Critic-1.01
in thread Module Announcement: Perl-Critic-1.01

Well, I guess it really depends on what you are being explict about :)

The other replys to this node all have valid points. However, what if I really did want to return undef? This is valid use case too.

-stvn


Comment on Re^2: Module Announcement: Perl-Critic-1.01
Re^3: Module Announcement: Perl-Critic-1.01
by xdg (Monsignor) on Jan 26, 2007 at 18:51 UTC

    Perl::Critic has a section about "Bending the Rules" -- you can bypass criticism if you really intended something. It's good if you usually follow the rules, but don't want to be hassled when you're knowingly breaking them.

    return undef; ## no critic

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-04-19 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls