Perl critic policy violation in checking index of substring in a string
for my $item (@array) { if (index($item, '$n') != -1) { print "HELLO\n"; } } Perl critic gives the following policy violation: String may require interpolation at line 168, near '$item, '$n''. (Severity: 1) How do I fix this?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.