En op 08 augustus 2002 sprak Ton Hospel: > In article <20020808051117.GA19996@ruunat.phys.uu.nl>, > Eugene van der Pijll <E.C.vanderPijll@phys.uu.nl> writes: > > > > $ 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? > > mmm, does this happen to be a perl compiled to use 64-bit integers ? Yes > Does it work if you replace ~4 by +1 ? Yes. FWIW, on my linux (32-bit) system, it doesn't work either. But that's perl 5.8.0... (-ugene -- http://babyl.dyndns.org/golf/book.xml?style=golfer;id=58Thread Previous | Thread Next