Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [Perl-Critic] Policy to catch overuse of short-circuit ?

perlcritic
Discussion topic

Back to topic list

[Perl-Critic] Policy to catch overuse of short-circuit ?

Reply

Author Gabor Szabo <gabor at szabgab dot com>
Full name Gabor Szabo <gabor at szabgab dot com>
Date 2015-05-25 06:53:12 PDT
Message Hi

open or die

is a fairly accepted expression, but some people really love to write in
the shell-ish way

cond and cond and action;

e.g. I just encountered this code:

    is_ok $obj and $node = $obj, last;
Is there a policy that would locate these?

regards
   Gabor
Attachments

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

[Perl-Critic] Policy to catch overuse of short-circuit ? Gabor Szabo <gabor at szabgab dot com> Gabor Szabo <gabor at szabgab dot com> 2015-05-25 06:53:12 PDT
     Re: [Perl-Critic] Policy to catch overuse of short-circuit ? thaljef Jeffrey Ryan Thalhammer 2015-05-25 12:12:19 PDT
         Re: [Perl-Critic] Policy to catch overuse of short-circuit ? Gabor Szabo <gabor at szabgab dot com> Gabor Szabo <gabor at szabgab dot com> 2015-05-25 12:22:37 PDT
Messages per page: