in reply to Re^3: Don't treat your numbers as strings, or Interpolation is worse than you might think
in thread Don't treat your numbers as strings, or Interpolation is worse than you might think
(and the ones for @ary2, obviously)my @permuted = @ary[0..$i-1, $j, $i+1..$j-1, $i, $j+1..$len]; # and my @permuted = @ary; @permuted[$i, $j] = @permuted[$j, $i];
In other words, the operation in the benchmark IS a copy operation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Don't treat your numbers as strings, or Interpolation is worse than you might think
by diotalevi (Canon) on Jul 22, 2006 at 16:04 UTC |