Hi,
I have an odd performance question. Could anybody tell me why version 1
below is faster than version 2? It looks like the opposite is true.
Version 1:
my ($a,$b,$c)=(0,1,2);
$v=[1,2,3];
for($i=0;$i<1;$i++)
{
$v->[0]=$a;
$v->[0]=$b;
$v->[0]=$c;
}
Version 2:
my ($a,$
On Tue, Jun 24, 2003 at 12:21:54AM -0500, [EMAIL PROTECTED] wrote:
> I have an odd performance question. Could anybody tell me why version 1
> below is faster than version 2? It looks like the opposite is true.
They're not equivalent programs. #2 assigns to 0, 1 and 2 of @$v. #1
as