in reply to Setting $0 clears /proc/PID/environ too
I'm really not sure why you're finding it necessary to change the value of $0 anyway -- to me, that's a read-only value passed into your script from the environment you're running in. Why change it? What problem are you try to solve?
In Section
Seekers of Perl Wisdom