in reply to Where's my tie ?
Turns out that the behaviour you have stumbled upon is an undocumented feature to prevent horrible horrible things from happening with self tied objects. Basically before any tie related operation occurs the thing it affects has its Magic bits temporarily suspended to prevent infinite recursion.
The reason why it doesnt _seem_ to happen on a FETCH/STORE but does on CLEAR is because FETCH/STORE affects an element (and that element does indeed have its magic bit cleared) wheras CLEAR affects the whole object. This also explains the behaviour of the other Tie types. Where the autocalled method affects the overall tie it will seem as though the object isn't tied for the duration of that method.
BTW, why do you need this behaviour? I'm interested in the core problem you are facing. For instance why isn't the access to $self sufficient for your needs?
--- demerphq
my friends call me, usually because I'm late....
|
|---|