I cannot figure out how to fix these issues.
Buy the book, then you might stand a chance :)
$ pm_which Perl::Critic C:\perl\site\5.14.1\lib\Perl\Critic.pm $ ack "Useless interpolation of literal string" C:\perl\site\5.14.1\li +b\Perl\Critic C:\perl\site\5.14.1\lib\Perl\Critic\Policy\ValuesAndExpressions\Prohib +itInterpolationOfLiterals.pm 24:Readonly::Scalar my $DESC => q{Useless interpolation of literal str +ing};
perldoc Perl::Critic::Policy::ValuesAndExpressions::ProhibitInterpolationOfLiterals
I am not a fan of this policy :)
Also, since essentially these functions are doing the same thing (one with variables and one with lists), is there a way to combine them where it wouldn't matter if variables or arrays are passed?
What is the purpose of these functions? Your use of string-eval could be critical :)
In reply to Re: Perl::Critic and Subroutines
by Anonymous Monk
in thread Perl::Critic and Subroutines
by daugh016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |