@arr = undef;
is not the same as
undef @arr;
It assigns undef to the first element of the array, i.e. it's equivalent to
@arr = (undef);
Therefore, it calls CLEAR and STORE, which means two trigger calls.
$$ref = 11;
$self->SUPER::STORE($self, @_);
Remove the $self from the arguments and the problem is gone.
Update: Here's what caused the problem: when a reference is used as a number, it returns its "address" (which is good for comparing references with ==). Therefore, when you supplied $self as the first argument to STORE, it was interpreted as the index where the actual index was stored. The number was probably very high, so the array become gargantuan.
In reply to Re^2: Is tie inteded to be used in this way? Few question arise
by choroba
in thread Is tie inteded to be used in this way?
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |