1Perl::Critic::Policy::VUasreirPaebCrlolen:st::rC:irPbirutotihecid:b:iPPteoMrlalitccDyho:Vc:auVrmaser(ni3ta)abtlieosn::ProhibitMatchVars(3)
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-2009 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.10.1 Perl::Cri2t0i1c0:-:1P1o-l1i2cy::Variables::ProhibitMatchVars(3)