Subject: | Crash in RegularExpressions::ProhibitUnusedCapture |
The attached Perl program crashes perlcritic:
% cat crash_perlcritic
$x !~ /()/;
<<X
,
,
,
,
,
% perlcritic --single-policy RegularExpressions::ProhibitUnusedCapture
crash_perlcritic
Fatal error while critiquing "crash_perlcritic": Can't call method
"uses_module" without a package or object reference at
/usr/share/perl5/Perl/Critic/Policy/RegularExpressions/ProhibitUnusedCapture.pm
line 573.
Whitespace is significant, so please use the attachment.
This test case is not a well-formed Perl program. I think perlcritic
should not crash on any input, but if you disagree, I am able to provide
a less minimal test case which is valid Perl code.
Subject: | crash_perlcritic |
Message body not shown because it is not plain text.