title: Perl 2d Array Push
body: <p>Why is there a difference in the creation of the following arrays @test1 and @test2?</p>
  
  <pre><code>#!/bin/perl -w
  use Data::Dumper;
  use warnings;
  use strict;
  
  my @test1 = [
       ['note', 1],
       ['note', 3]
  ];
  
  print Dumper(@test1);
  
  my @test2;
  push(@test2, ['note', 1]);
  push(@test2, ['note', 3]);
  
  print Dumper(@test2);
  </code></pre>
  
  <p>Datadump for test1:</p>
  
  <pre><code>$VAR1 = [
        [
          'note',
          1
        ],
        [
          'note',
          3
        ]
      ];
  </code></pre>
  
  <p>Dumpt for test2:</p>
  
  <pre><code>$VAR1 = [
            'note',
            1
          ];
  $VAR2 = [
            'note',
            3
          ];
  </code></pre>
  
  <p>Is there a possibility to create the same result of @test1 with iterative pushing to @test2?</p>