tom arnall wrote:
is this a rigged test? at:

        http://shootout.alioth.debian.org/gp4/benchmark.php?\
        test=partialsums&lang=perl&id=3
        
i find a 'partial-sums' benchmark coded in Perl, in which what should be a constant is coded as a subroutine call!!!

In Perl constants are defined as subroutines. See the "Constant Functions" section of perlsub:

perldoc perlsub

I looked at the same benchmark for Python and they use a constant. is this for real?

the partial-sums code was all i checked.

John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to