2 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <title>English - use nice English names for ugly punctuation variables
</title>
6 <meta http-equiv=
"content-type" content=
"text/html; charset=utf-8" />
7 <link rev=
"made" href=
"mailto:" />
10 <body style=
"background-color: white">
11 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
12 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
13 <big><strong><span class=
"block"> English - use nice English names for ugly punctuation variables
</span></strong></big>
17 <p><a name=
"__index__"></a></p>
22 <li><a href=
"#name">NAME
</a></li>
23 <li><a href=
"#synopsis">SYNOPSIS
</a></li>
24 <li><a href=
"#description">DESCRIPTION
</a></li>
25 <li><a href=
"#performance">PERFORMANCE
</a></li>
32 <h1><a name=
"name">NAME
</a></h1>
33 <p>English - use nice English (or awk) names for ugly punctuation variables
</p>
37 <h1><a name=
"synopsis">SYNOPSIS
</a></h1>
39 use English qw( -no_match_vars ) ; # Avoids regex performance penalty
42 if ($ERRNO =~ /denied/) { ... }
</pre>
46 <h1><a name=
"description">DESCRIPTION
</a></h1>
47 <p>This module provides aliases for the built-in variables whose
48 names no one seems to like to read. Variables with side-effects
49 which get triggered just by accessing them (like $
0) will still
51 <p>For those variables that have an
<strong>awk
</strong> version, both long
52 and short English alternatives are provided. For example,
53 the
<a href=
"file://C|\msysgit\mingw\html/pod/perlvar.html#item___"><code>$/
</code></a> variable can be referred to either $RS or
54 $INPUT_RECORD_SEPARATOR if you are using the English module.
</p>
55 <p>See
<a href=
"file://C|\msysgit\mingw\html/pod/perlvar.html">the perlvar manpage
</a> for a complete list of these.
</p>
59 <h1><a name=
"performance">PERFORMANCE
</a></h1>
60 <p>This module can provoke sizeable inefficiencies for regular expressions,
61 due to unfortunate implementation details. If performance matters in
62 your application and you don't need $PREMATCH, $MATCH, or $POSTMATCH,
65 use English qw( -no_match_vars ) ;
</pre>
66 <p>.
<strong>It is especially important to do this in modules to avoid penalizing
67 all applications which use them.
</strong></p>
68 <table border=
"0" width=
"100%" cellspacing=
"0" cellpadding=
"3">
69 <tr><td class=
"block" style=
"background-color: #cccccc" valign=
"middle">
70 <big><strong><span class=
"block"> English - use nice English names for ugly punctuation variables
</span></strong></big>