in reply to Perl::Critic and Subroutines
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 :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl::Critic and Subroutines
by tobyink (Canon) on Nov 28, 2012 at 10:23 UTC | |
by jthalhammer (Friar) on Dec 04, 2012 at 06:17 UTC | |
|
Re^2: Perl::Critic and Subroutines
by daugh016 (Initiate) on Nov 27, 2012 at 22:22 UTC | |
by Anonymous Monk on Nov 27, 2012 at 23:05 UTC | |
by Anonymous Monk on Nov 27, 2012 at 23:07 UTC |