in reply to tie and untie old value
In practice, this mostly works for arrays and hashes, and mostly not for scalars.