in reply to Where is implementation of $0 in Perl source code

The implementation of caller is found here.

The code called after you store a value in $0 is found here.

The code called before you fetch the value of $0 is a no-op.