On 7/1/05, demerphq <[EMAIL PROTECTED]> wrote: > The question you have to ask yourself is why should a reference be > treated different from any other value? It is a VALUE. > IE: why should
In the following part i meant to make it more clear: by changing this line > > $x=1;$y=2;$z=3; to $x=1; $y=1;$z=2; > > $a1=[$x,$x]; > $a2=[$y,$z]; > > $a1 and $a2 are different but > > $x={};$y={};$z={}; > > $a3=[$x,$x]; > $a4=[$y,$z]; > > $a3 and $a4 are not? Isn't the situation identical? Consider > > # add one to each of the arrays > for my $ar ($a1,$a2,$a3,$a4) { > $_=0+$_ @$ar; > } > > so now the refs turn into their addresses and you will consider them > different? This just doesnt make sense. Sorry about that. Twitchy send finger. :-) cheers, -- perl -Mre=debug -e "/just|another|perl|hacker/"