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

Re: And the winner is...Juho Snellman

Thread Previous | Thread Next
From:
perl-golf
Date:
August 7, 2002 22:17
Subject:
Re: And the winner is...Juho Snellman
Message ID:
aisut0$vaj$4@post.home.lunix
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 ?
Does it work if you replace ~4 by +1 ?

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