From: Rafael Garcia-Suarez Date: Sun, 25 Jan 2009 15:57:19 +0000 (+0100) Subject: Document that $0 is set to "-e" when perl is run with -e or -E X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=52c447a82d7db5d9640813b729e0621880550564;p=p5sagit%2Fp5-mst-13.2.git Document that $0 is set to "-e" when perl is run with -e or -E --- diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 68573e3..d61fad6 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1021,6 +1021,9 @@ to ps(1) (assuming the operating system plays along). Note that the view of C<$0> the other threads have will not change since they have their own copies of it. +If the program has been given to perl via the switches C<-e> or C<-E>, +C<$0> will contain the string C<"-e">. + =item $[ X<$[>