On H.25/06/01, at 18:43, Andrew Beverley <a...@andybev.com> wrote: > my $result = "FOO" if $in =~ /foo/;
Conditional variable declaration is confusing. Try: my $result; $result = "FOO" if $in =~ /foo/; See https://metacpan.org/module/Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations Marcel