Ingo Blechschmidt wrote:
> Then we wondered what should happen to array elements which are bound
> to other variables if some things happen to the array. (Of course, the
> same thoughts apply to hashes as well).
Two more questions:
* @array[$out_of_bounds_index] := $var;
# Fatal error ("Can't rebind non-existant container")?
# Or autovivify @array[$out_of_bounds_index]?
* @foo[$idx] := $var;
my @bar = @foo;
$var = $new_var;
# @foo[$idx] and $var are now $new_var, but @bar is unchanged, right?
--Ingo
--
Linux, the choice of a GNU | We are Pentium of Borg. Division is futile.
generation on a dual AMD | You will be approximated.
Athlon! |