Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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.


Comment on Re^2: Module Announcement: Perl-Critic-1.01
Replies are listed 'Best First'.
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


    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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2015-11-26 19:12 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (706 votes), past polls