From: Jarkko Hietaniemi Date: Mon, 30 Jun 2003 07:24:18 +0000 (+0000) Subject: $0 doc tweakage. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f9cbb277dec3cb2700132dedd25b05ea72cda45a;p=p5sagit%2Fp5-mst-13.2.git $0 doc tweakage. p4raw-id: //depot/perl@19888 --- diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 7667f1d..af50613 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -840,11 +840,15 @@ and C<$)> can be swapped only on machines supporting setregid(). Contains the name of the program being executed. On some (read: not all) operating systems assigning to C<$0> modifies the argument area -that the B program sees. Also note that depending on the platform, -the maximum length of C<$0> may be limited to the space occupied by -the original C<$0>. This is more useful as a way of indicating the -current program state than it is for hiding the program you're -running. (Mnemonic: same as B and B.) +that the C program sees. On some platforms you may have to use +special C options or a different C to see the changes. +Modifying the $0 is more useful as a way of indicating thecurrent +program state than it is for hiding the program you're running. +(Mnemonic: same as B and B.) + +Note that there are platform specific limitations on the the maximum +length of C<$0>. In the most extreme case it may be limited to the +space occupied by the original C<$0>. Note for BSD users: setting C<$0> does not completely remove "perl" from the ps(1) output. For example, setting C<$0> to C<"foobar"> will