There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Perl::Critic::Policy::ControlStructures::ProhibitSwitchStatements - avoid using switch statement keywords which might imply implicit smartmatching

DESCRIPTION

Switch statements are considered experimental, see "Switch Statements" in perlsyn. This policy aims to avoid using switch statement keywords.

given ($foo) {
    when (42) { say 'Heureka!'; }
    default { die 'Oh!'; }
}

AUTHOR

Jan Holcapek <holcapek@gmail.com>