Perl::Critic::Policy::Bangs::ProhibitBitwiseOperators - Bitwise operators are usually accidentally used instead of logical boolean operators.
This Policy is part of the Perl::Critic::Bangs distribution.
Bitwise operators are usually accidentally used instead of logical boolean operators. Instead of writing $a || $b, people will often write $a | $b, which is not correct.
$a || $b
$a | $b
This policy cannot be configured.
Mike O'Regan <moregan@stresscafe.com>
Copyright (C) 2006-2017 Andy Lester and Mike O'Regan
This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.
To install Perl::Critic::Bangs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Bangs
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Bangs
For more information on module installation, please visit the detailed CPAN module installation guide.