On 11/13/05, Tom Allison <[EMAIL PROTECTED]> wrote: > my $A = [1,2,3,4,5,6,7,8,9]; > my $B = [11,12,13,14,15,16,17,18,19]; > > timethese(10000000, > { > 'plain' => 'my $array = [$A, $B];', > 'loopy' => 'push @$A, $_ foreach @$B;' > });
Another important thing to notice is that John's benchmarks operate entirely on temporary variables while the ones above modify the main variables every single time, leading to a very large array in $A and most likely not demonstrating the specific performance measurement desired. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>