I think that an argument could be made that Perl should try to preserve the contents of /proc/PID/environ when changing $0, and do a more thorough job of restoring the original command line if $0 is localized.
perlbugit
In reply to Re: Setting $0 clears /proc/PID/environ too
by Anonymous Monk
in thread Setting $0 clears /proc/PID/environ too
by kikuchiyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |