A slight alternative is to shuffle the indexes.
my @want = map{ "@start[ $_, ( shuffle 0 .. $_-1, $_+1 .. $#start )[ 0 .. 2 ] ]" } 0 .. $#start;
Don't even need join anymore!
In reply to Re^2: Array problem
by ikegami
in thread Array problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |