in reply to Lottery combinations golf
There ought to be plenty to be trimmed from this...but I haven't found it.
perl -lejoin('',1..pop)=~'(.).*(.).*(.).*(.).*(.).*(.)(?{print$1,$2,$3 +,$4,$5,$6})(?!)' 9 [download]