Subject: | CodeLayout::RequireFinalSemicolon false positive with TryCatch |
The CPAN module TryCatch adds try/catch syntax to Perl. This can cause a false positive requiring a final semicolon:
{
try { say 55 }
catch ($err) {
die $err unless $err =~ /foo/;
}
}
Note that if the outer {} are removed the false positive goes away.