1Perl::Critic::Policy::VUasPreeirralbC:lo:enCstr:ri:itPbirucot:he:idPboiPlteiMrcalyt:cD:hoVVcaaurrmisea(nb3tlpaemts)i:o:nProhibitMatchVars(3pm)
2
3
4
6 Perl::Critic::Policy::Variables::ProhibitMatchVars - Avoid "$`", "$&",
7 "$'" and their English equivalents.
8
10 This Policy is part of the core Perl::Critic distribution.
11
13 Using the "match variables" "$`", $&, and/or "$'" can significantly
14 degrade the performance of a program. This policy forbids using them
15 or their English equivalents. See perldoc English or PBP page 82 for
16 more information.
17
18 It used to forbid plain "use English;" because it ends up causing the
19 performance side-effects of the match variables. However, the message
20 emitted for that situation was not at all clear and there is now
21 Perl::Critic::Policy::Modules::RequireNoMatchVarsWithUseEnglish, which
22 addresses this situation directly.
23
25 This Policy is not configurable except for the standard options.
26
28 Chris Dolan <cdolan@cpan.org>
29
31 Copyright (c) 2006-2011 Chris Dolan.
32
33 This program is free software; you can redistribute it and/or modify it
34 under the same terms as Perl itself. The full text of this license can
35 be found in the LICENSE file included with this module.
36
37
38
39perl v5.38.0 Perl::Criti2c0:2:3P-o0l9i-c2y5::Variables::ProhibitMatchVars(3pm)