Subject: | ProhibitMagicNumbers false positive with capture variables |
Test program:
$_ = 'xxxxxxxxxxxxxxxxxxxx';
/(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/;
my $x = $13;
print $x;
Checking with --single-policy ValuesAndExpressions::ProhibitMagicNumbers
gives the message
3 is not one of the allowed literal values (0, 1, 2).