On Oct 11, 2012, at 10:30 AM,
http://castro.crustytoothpaste.net/~bmc/ via RT wrote:
Show quoted text> I have a function using for/when as follows:
>
> <snip/>
>
> ProhibitUnreachableCode seems to think that the default block and all
> but the first when statement are unreachable. This is not the case and
> the function works as expected. None of the statements in this function
> should be considered unreachable.
That use of postfix "when" looks very fixable. Thanks for bringing this to our attention.
PPI and Perl::Critic are a bit behind on some of the newer language constructs. We'll do our best to keep up!
-Jeff