Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my %hashexample = qw(k1 v1 k2 v2 k3 v3);
    
    my @arr = (\@arrexample, \%hashexample);
    
  2. or download this
    my @arrexample_copy = @{$arr[0]};
  3. or download this
    my %hashexample_copy = %{$arr[1]};