Help for this page

Select Code to Download


  1. or download this
    sub merge {
       if(wantarray) {
    ...
          return join('',@_);
       }
    }
    
  2. or download this
    my %hash = merge(%hash1,%hash2);
    
  3. or download this
    my @array = merge(@array1,@array2);
    my $scalar = merge($scalar1,$scalar2);
    ...
    # or like the push function (only you have to get the return value)
    
    my @array = merge(@array2,$scalar);