title: Array assignment in Perl
body: <p>What is the difference between </p>
  
  <pre><code>myArr1 =&gt; \@existingarray
  </code></pre>
  
  <p>and </p>
  
  <pre><code>myArr2 =&gt; [
                @existingarray
            ]
  </code></pre>
  
  <p>I am assigning the <code>@existingarray</code> to a element in a hash map.</p>
  
  <p>I mean what exactly internally happens. Is it that for the first one,  it points to the same array and for the second array it creates a new array with the elements in the <code>@existingarray</code></p>
  
  <p>Thanks in advance</p>