Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You might want to look at the <a href="http://perldoc.perl.org/perlintro.html" rel="nofollow noreferrer"><code>perlintro</code></a> and <a href="http://perldoc.perl.org/perlsyn.html" rel="nofollow noreferrer"><code>perlsyn</code></a> documents in order to really get started with understanding Perl (i.e., Read The Flipping Manual). :-)</p> <p>That said:</p> <ul> <li><code>$this</code> is a scalar, which can store a number (int or float), a string, or a reference (see below);</li> <li><code>@that</code> is an array, which can store an ordered list of scalars (see above). You can add a scalar to an array with the <code>push</code> or <code>unshift</code> functions (see <code>perlfunc</code>), and you can use a parentheses-bounded comma-separated list of scalar literals or variables to create an array literal (i.e., <code>my @array = ($a, $b, 6, "seven");</code>)</li> <li><code>%those</code> is a hash, which is an associative array. Hashes have key-value pairs of entries, such that you can access the value of a hash by supplying its key. Hash literals can also be specified much like lists, except that every odd entry is a key and every even one is a value. You can also use a <code>=&gt;</code> character instead of a comma to separate a key and a value. (i.e., <code>my %ordinals = ("one" =&gt; "first", "two" =&gt; "second");</code>)</li> </ul> <p>Normally, when you pass arrays or hashes to subroutine calls, the individual lists are flattened into one long list. This is sometimes desirable, sometimes not. In the latter case, you can use references to pass a reference to an entire list as a single scalar argument. The syntax and semantics of references are tricky, though, and fall beyond the scope of this answer. If you want to check it out, though, see <a href="http://perldoc.perl.org/perlref.html" rel="nofollow noreferrer"><code>perlref</code></a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload