in reply to Where is blessing magic located?
When you assign to the entire array/hash/scalar that is your object, perl doesn't generate a new array/hash/scalar--it cleans it out and reuses it, including any blessing on it. (Yes, in some circumstances magic is removed. This isn't one of them)
You can check this with this little snippet:
which produces the output$foo = \%bar; print $foo, "\n"; %bar = (); $foo = \%bar; print $foo, "\n";
HASH(0x80d0b84)showing that %bar hasn't moved. (And is, therefore, the same variable)
HASH(0x80d0b84)
|
|---|