in reply to Re: Lottery using arrays
in thread Lottery using arrays

No temp value is needed when swapping in Perl:
($freq[$i], $freq[$j]) = ($freq[$j], $freq[$i]);
or even (using slices):
@freq[$i, $j] = @freq[$j, $i];
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ