Subject: | ControlStructures::ProhibitUnreachableCode false positive with // |
This test program:
#!/usr/bin/perl
use warnings;
use strict;
use 5.010;
my $home = $ENV{HOME} // die "HOME not set";
say 'hello';
produces a false positive from ControlStructures::ProhibitUnreachableCode:
% perlcritic -4 test
Unreachable code at line 7, column 1. Consider removing it. (Severity: 4)
perl 5.10.0 on Fedora 9.