Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    my $aref = ['x','y'];
    ...
              ],
              $VAR1->[0]
            ];
    
  2. or download this
    use Data::Dumper;
    my $aref = ['x','y'];
    ...
              []
            ];
    $VAR1->[1] = $VAR1->[0];
    
  3. or download this
    use Data::Dumper;
    use Storable qw/dclone/;
    ...
    __END__
    
    $VAR1 = [[[1,2],[2,3]],[[2,3],[3,4]],[[3,4],[4,6]]];
    
  4. or download this
    use Data::Dump;
    my $aref = ['x','y'];
    ...
      $a->[1] = $a->[0];
      $a;
    }
    
  5. or download this
    use Data::Dumper;
    $Data::Dumper::Deepcopy = 1;
    ...
    print Dumper(\@a), "\n";
    __END__
    $VAR1 = [['x','y'],['x','y']];