In Perl, if I use “$0

(You): In Perl, if I use “$0=’foo’;” to change my program’s process name, how can people still see the original process name?

(Martin): $0 is a variable that is only pertinent to the internal perl context, the kernel will still have your program on file under it’s original name and the kernel considers it a bit of an exploit if you try and change it.

[Vark assigned category: Perl, more details]

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *