HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/share/doc/ruby/html/English.html
<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">

<title>module English - RDoc Documentation</title>

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
</script>

<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<link href="./css/fonts.css" rel="stylesheet">
<link href="./css/rdoc.css" rel="stylesheet">




<body id="top" role="document" class="module">
<nav role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2>
    <a href="./index.html" rel="home">Home</a>
  </h2>

  <div id="table-of-contents-navigation">
    <a href="./table_of_contents.html#pages">Pages</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  

  <div id="class-metadata">
    
    
    
    
    
  </div>
</nav>

<main role="main" aria-labelledby="module-English">
  <h1 id="module-English" class="module">
    module English
  </h1>

  <section class="description">
    
<p>Include the <a href="English.html"><code>English</code></a> library file in a Ruby script, and you can reference the global variables such as <code>$_</code> using less cryptic names, listed below.</p>

<p>Without &#39;English&#39;:</p>

<pre class="ruby"><span class="ruby-identifier">$\</span> = <span class="ruby-string">&#39; -- &#39;</span>
<span class="ruby-string">&quot;waterbuffalo&quot;</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/buff/</span>
<span class="ruby-identifier">print</span> <span class="ruby-node">$&#39;</span>, <span class="ruby-identifier">$$</span>, <span class="ruby-string">&quot;\n&quot;</span>
</pre>

<p>With English:</p>

<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&quot;English&quot;</span>

<span class="ruby-identifier">$OUTPUT_FIELD_SEPARATOR</span> = <span class="ruby-string">&#39; -- &#39;</span>
<span class="ruby-string">&quot;waterbuffalo&quot;</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/buff/</span>
<span class="ruby-identifier">print</span> <span class="ruby-identifier">$POSTMATCH</span>, <span class="ruby-identifier">$PID</span>, <span class="ruby-string">&quot;\n&quot;</span>
</pre>

<p>Below is a full list of descriptive aliases and their associated global variable:</p>
<dl class="rdoc-list note-list"><dt>$ERROR_INFO
<dd>
<p>$!</p>
</dd><dt>$ERROR_POSITION
<dd>
<p>$@</p>
</dd><dt>$FS
<dd>
<p>$;</p>
</dd><dt>$FIELD_SEPARATOR
<dd>
<p>$;</p>
</dd><dt>$OFS
<dd>
<p>$,</p>
</dd><dt>$OUTPUT_FIELD_SEPARATOR
<dd>
<p>$,</p>
</dd><dt>$RS
<dd>
<p>$/</p>
</dd><dt>$INPUT_RECORD_SEPARATOR
<dd>
<p>$/</p>
</dd><dt>$ORS
<dd>
<p>$\</p>
</dd><dt>$OUTPUT_RECORD_SEPARATOR
<dd>
<p>$\</p>
</dd><dt>$INPUT_LINE_NUMBER
<dd>
<p>$.</p>
</dd><dt>$NR
<dd>
<p>$.</p>
</dd><dt>$LAST_READ_LINE
<dd>
<p>$_</p>
</dd><dt>$DEFAULT_OUTPUT
<dd>
<p>$&gt;</p>
</dd><dt>$DEFAULT_INPUT
<dd>
<p>$&lt;</p>
</dd><dt>$PID
<dd>
<p>$$</p>
</dd><dt>$PROCESS_ID
<dd>
<p>$$</p>
</dd><dt>$CHILD_STATUS
<dd>
<p>$?</p>
</dd><dt>$LAST_MATCH_INFO
<dd>
<p>$~</p>
</dd><dt>$IGNORECASE
<dd>
<p>$=</p>
</dd><dt>$ARGV
<dd>
<p>$*</p>
</dd><dt>$MATCH
<dd>
<p>$&amp;</p>
</dd><dt>$PREMATCH
<dd>
<p>$`</p>
</dd><dt>$POSTMATCH
<dd>
<p>$&#39;</p>
</dd><dt>$LAST_PAREN_MATCH
<dd>
<p>$+</p>
</dd></dl>

  </section>

  
  <section id="5Buntitled-5D" class="documentation-section">
    

    

    

    

    
  </section>

</main>


<footer id="validator-badges" role="contentinfo">
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
  <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.1.
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
</footer>