1Perl::Critic::Policy::VUasreirPaebCrlolen:st::rC:irPbirutotihecid:b:iPPteoMrlalitccDyho:Vc:auVrmaser(ni3ta)abtlieosn::ProhibitMatchVars(3)
2
3
4

NAME

6       Perl::Critic::Policy::Variables::ProhibitMatchVars - Avoid "$`", "$&",
7       "$'" and their English equivalents.
8

AFFILIATION

10       This Policy is part of the core Perl::Critic distribution.
11

DESCRIPTION

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

CONFIGURATION

25       This Policy is not configurable except for the standard options.
26

AUTHOR

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.28.1             Perl::Cri2t0i1c9:-:0P2o-l0i2cy::Variables::ProhibitMatchVars(3)
Impressum