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

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

    -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.