Help for this page

Select Code to Download


  1. or download this
    $myhash = \%myhash;
    
    ...
        my($b)=$_[1];
        $_[0] = { %{$_[0]},  %{$b} };
    }
    
  2. or download this
    sub mergetwohashes {
        my($a)=$_[0];
        my($b)=$_[1];
        %{$a} = ( %{$a},  %{$b} );
    }