QUOTE(KevinADC @ 25 Jul, 2008 - 10:48 PM)

There is a module that does permutations way more efficiently than this convoluted code does. List::Permutor
hey thankx do you happen to know where i can get a list of modules
i optimized my convoluted code
now its kinda faster
CODE
for (0..9) {
$a = $_;
for (0..9) {
$b = $_;
for (0..9) {
$c = $_;
for (0..9) {
$d = $_;
for (0..9) {
$e = $_;
for (0..9) {
$f = $_;
for (0..9) {
$g = $_;
for (0..9) {
$h = $_;
for (0..9) {
$i = $_;
for (0..9) {
$j = $_;
if ($a != $b & $a != $c & $a != $d & $a != $e & $a != $f & $a != $g & $a != $h & $a != $i & $a != $j) {
if ($b != $c & $b != $d & $b != $e & $b != $f & $b != $g & $b != $h & $b != $i & $b != $j) {
if ($c != $d & $c != $e & $c != $f & $c != $g & $c != $h & $c != $i & $c != $j) {
if ($d != $e & $d != $f & $d != $g & $d != $h & $d != $i & $d != $j) {
if ($e != $f & $e != $g & $e != $h & $e != $i & $e != $j) {
if ($f != $g & $f != $h & $f != $i & $f != $j) {
if ($g != $h & $g != $i & $g != $j) {
if ($h != $i & $h != $j) {
if ($i != $j) {
print $a,$b,$c,$d,$e,$f,$g,$h,$i,$j,;
print "\n";
}}}}}}}}}}}}}}}}}}}