Eugene van der Pijll wrote: > > Unfortunately, his solution doesn't seem to work here. > > $ cat factorial.pl > #!perl -l > $_*=$`%9e9,//for~4=~/0*$/..pop;print$`%10 > $ perl factorial.pl 15 > 0 > $ perl --version > > This is perl, v5.6.1 built for alpha-dec_osf > > Can someone explain, please? > It's a 32- vs 64- bit thing. On a 32-bit box, ~4 == 4294967291 (which ends in "1"). On a 64 bit alpha, it is different. [hrisThread Previous | Thread Next