Help for this page

Select Code to Download


  1. or download this
    1 2 3 4 5 6 a b c
    
  2. or download this
    x           y
    1 2 3 4 5 6 a b c
    
  3. or download this
          x           y
    a b c 4 5 6 1 2 3
    
  4. or download this
    $y = $offset_y if $y == @$ary;
    
          x     y
    a b c 4 5 6 1 2 3
    
  5. or download this
    sub do_swaps {
        my ( $ary, $offset_x, $offset_y, $swaps ) = @_;
    ...
        
        return $swaps;
    }