in reply to Re^2: Random array sorting
in thread Random array sorting

Ignoring that it doesn't work, I don't see how

print $_, "\n" foreach (sort {int(rand(3))-1} @array);

is easier than

print $_, "\n" foreach shuffle @array;