Help for this page

Select Code to Download


  1. or download this
    my $data1 = [
            { "shape" => "round", "food" => "apple" },
    ...
    my $test3 = $test2;
    
    print Dumper($test3);
    
  2. or download this
    my $data1 = [
            { "shape" => "round", "food" => "apple" },
    ...
            print Dumper($copy);
    }
    
  3. or download this
    use Data::Dumper;
    
    ...
            $d->{sizes} = $data2;
            print Dumper($d);
    }
    
  4. or download this
    my @array;
    foreach (0..2) {
    ...
            push(@array,$d);
    }
    print Dumper(\@array);
    
  5. or download this
    my @array;
    foreach (0..2) {
    ...
            push(@array,clone($d));
    }
    print Dumper(\@array);