Help for this page

Select Code to Download


  1. or download this
    my @array = (0..7);
    splice @array, 4, 0, ('inserted-array');
    print "@array\n";
    
  2. or download this
    # push @array, @others;
    splice @array, @array, 0, @others;
    ...
    
    # unshift @array, @others
    splice @array, 0, 0, @others;