Re: is this a rigged test?

2007-12-30 Thread Chas. Owens
On Dec 30, 2007 5:49 PM, tom arnall <[EMAIL PROTECTED]> wrote: > oops. i just ran the code. no diff' when run $TWO_THIRDS. oh well, in Perl > subroutines are cheap! Subroutines aren't that cheap, but making them unary operators lessens the costs and using the constant pragma makes it even cheaper:

Re: is this a rigged test?

2007-12-30 Thread John W. Krahn
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 ar

Re: configuring startperl during make ?

2007-12-30 Thread Tom Phoenix
On Dec 28, 2007 9:10 PM, Mayuresh Nirhali <[EMAIL PROTECTED]> wrote: > In my make environment surrounding the DBI compilation, I have a perl script > which is used during 'make install' instead of default install binary. I > realized that MakeMaker will ignore such INSTALL variable overriding. The

is this a rigged test?

2007-12-30 Thread tom arnall
oops. i just ran the code. no diff' when run $TWO_THIRDS. oh well, in Perl subroutines are cheap! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

is this a rigged test?

2007-12-30 Thread tom arnall
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!!! I looked at the same benchmark for Python

Re: Handling errors when working with files

2007-12-30 Thread Tom Phoenix
On Dec 30, 2007 10:17 AM, oscar gil <[EMAIL PROTECTED]> wrote: > What I still don't understand is why $! and $^E are set as there was an > error though there was not :-?. Those variables may be set when your perl binary internally needs to use a system call or something similar. During or shortly

Re: export variables

2007-12-30 Thread Chas. Owens
On Dec 30, 2007 6:29 AM, jwaixs <[EMAIL PROTECTED]> wrote: snip > I just want to split up a big file into smaller parts. But I don't > know which functioncall I should use for it. Peng is using "require", > is this the standard way for importing a file? snip The require function is one of the stan

Re: export variables

2007-12-30 Thread Jeff Pang
On Dec 30, 2007 7:29 PM, jwaixs <[EMAIL PROTECTED]> wrote: > > I just want to split up a big file into smaller parts. But I don't > know which functioncall I should use for it. Peng is using "require", > is this the standard way for importing a file? > Generally we use 'require' to read a config

Re: export variables

2007-12-30 Thread jwaixs
On Dec 30, 6:45 am, [EMAIL PROTECTED] (Patmarbidon) wrote: > Hello if you want to share variables content you might to use 'our' > instead of 'my'. Yes, that does it! Thank you! > > But I don't understand your example with 'use "file1.pl"'. > > I always use 'use module_name' and never 'use progra