Perl::Critic::Policy::Operators::ProhibitSmartmatch - avoid using explicit smartmatching via ~~ operator
~~
Smartmatch operator is considered experimental, see "Smartmatch Operator" in perlop.
if ($foo ~~ [ $bar ]) { say 'No!'; }
Jan Holcapek <holcapek@gmail.com>, who was heavily inspired by the work of hisaichi5518 <hisada.kazuki@gmail.com>
To install Perl::Critic::Policy::ProhibitSmartmatch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Policy::ProhibitSmartmatch
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Policy::ProhibitSmartmatch
For more information on module installation, please visit the detailed CPAN module installation guide.