Alexander Kellett wrote: > On Feb 22, 2005, at 10:37 PM, Josef 'Jupp' Schugt wrote: > >> An ORCC doesn't seem to be a good idea. I already hear them saying "See >> this? They keep on saying that Ruby code is much cleaner than Perl code. >> Don't believe their lies." > > you're just annoyed cus you can't write crap code! It only seems more natural to use C for that. The following is a quick and dirty hack to compute n! I wrote yesterday - without having obfuscation in mind. It's simply my way of writing C. Blame it on my tutorial - K&R. #include <stdio.h> #include <stdlib.h> int main(int argc,char*argv[]){ unsigned long long i,fac; for(i=fac=atoi(argv[1]);i>2;fac*=(--i)); return(printf("%ll\n",fac)==1); } To me Ruby is a tool for elegant solutions: ruby -e 'puts (1..10).inject{|f,x| f*x}' Josef 'Jupp' Schugt