in reply to Re: Where is implementation of $0 in Perl source codein thread Where is implementation of $0 in Perl source code
$ perl -le'$0="Foo"; sub f { print "$0,", (caller)[1] } f()' Foo,-e [download]
Dave.