Since the dist.ini using plugin [AutoPrereqs] it guessed the minimum perl version is 5.6.0 because of the line 2: "use 5.006;" in the unit test "t/pod.t". However the following 2 lines in the package Perl::Critic::Policy::TryTiny::ProhibitExitingSubroutine is using "Logical Defined-Or" operator introduced in v5.10.0 only. So the solution is either set the minimum perl to v5.10 or don't use Logical Defined-Or. In my humble opinion, it is better to skip the use Logical Defined-Or and keep the minimum perl v5.6.
Hi @Flimm
Please review the PR. This PR propose to resolve the fail report below.
https://www.cpantesters.org/cpan/report/42f8935c-5be5-11e7-a074-e1beba07c9dd
Since the dist.ini using plugin [AutoPrereqs] it guessed the minimum perl version is 5.6.0 because of the line 2: "use 5.006;" in the unit test "t/pod.t". However the following 2 lines in the package Perl::Critic::Policy::TryTiny::ProhibitExitingSubroutine is using "Logical Defined-Or" operator introduced in v5.10.0 only. So the solution is either set the minimum perl to v5.10 or don't use Logical Defined-Or. In my humble opinion, it is better to skip the use Logical Defined-Or and keep the minimum perl v5.6.
is now looks like
Many Thanks. Best Regards, Mohammad S Anwar