1English(3pm) Perl Programmers Reference Guide English(3pm)
2
3
4
6 English - use nice English (or awk) names for ugly punctuation vari‐
7 ables
8
10 use English qw( -no_match_vars ) ; # Avoids regex performance penalty
11 use English;
12 ...
13 if ($ERRNO =~ /denied/) { ... }
14
16 This module provides aliases for the built-in variables whose names no
17 one seems to like to read. Variables with side-effects which get trig‐
18 gered just by accessing them (like $0) will still be affected.
19
20 For those variables that have an awk version, both long and short Eng‐
21 lish alternatives are provided. For example, the $/ variable can be
22 referred to either $RS or $INPUT_RECORD_SEPARATOR if you are using the
23 English module.
24
25 See perlvar for a complete list of these.
26
28 This module can provoke sizeable inefficiencies for regular expres‐
29 sions, due to unfortunate implementation details. If performance mat‐
30 ters in your application and you don't need $PREMATCH, $MATCH, or
31 $POSTMATCH, try doing
32
33 use English qw( -no_match_vars ) ;
34
35 . It is especially important to do this in modules to avoid penalizing
36 all applications which use them.
37
38
39
40perl v5.8.8 2001-09-21 English(3pm)