Perl::Critic::Policy::Subroutines::ProhibitLvalueMethods - Prohibit Methods being used as lvalues
In .perlcriticrc:
[Subroutines::ProhibitLvalueMethods]
Use of methods as lvalues is uncommon. For less experienced Perl authors, or author primarily experienced in other languages, lvalue methods can be confusing or can get used accidentally.
This policy blocks lvalue calls to methods. It does not block declaring a method as lvalue.
haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
None so far.
Copyright (c) 2022 the Perl::Critic::Policy::Subroutines::ProhibitLvalueMethods "AUTHOR" and "CONTRIBUTORS" as listed above.
This library is free software and may be distributed under the same terms as perl itself. See https://dev.perl.org/licenses/.
To install Perl::Critic::Policy::Subroutines::ProhibitLvalueMethods, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Critic::Policy::Subroutines::ProhibitLvalueMethods
CPAN shell
perl -MCPAN -e shell install Perl::Critic::Policy::Subroutines::ProhibitLvalueMethods
For more information on module installation, please visit the detailed CPAN module installation guide.