Hi,

* my @array = <a b c d>;
  @array[1] = "new";
  # Array elements are, of course, new (rw) containers.

* my @array = ($foo, $bar);

  @array[0] =:= $foo;
  # False -- array element are new containers.

  @array[0] = $baz;
  # $foo unchanged


I think these semantics are pretty clear. But what about lists?

  ($foo, $bar)[0] =:= $foo;
  # False (i.e. no difference to arrays) or true?


--Ingo
    
-- 
Linux, the choice of a GNU | How to become immortal: Read this signature
generation on a dual AMD   | tomorrow and follow its advice.
Athlon!                    | —-Holger Uhr

Reply via email to