develooper Front page | perl.golf | Postings from August 2002

Re: And the winner is...Juho Snellman

Thread Previous | Thread Next
From:
Eugene van der Pijll
Date:
August 7, 2002 22:23
Subject:
Re: And the winner is...Juho Snellman
Message ID:
20020808052324.GA8335@ruunat.phys.uu.nl
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=58

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About