summaryrefslogtreecommitdiff
path: root/pod/perlvar.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-01-25 16:57:19 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-01-25 16:57:19 +0100
commit52c447a82d7db5d9640813b729e0621880550564 (patch)
tree70d259dd88d6c8de2814749eac7fcff74b7d2fdd /pod/perlvar.pod
parent8afc33d62997aaa3a5e8c389cb908f2d4b3cd31f (diff)
downloadperl-52c447a82d7db5d9640813b729e0621880550564.tar.gz
Document that $0 is set to "-e" when perl is run with -e or -E
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r--pod/perlvar.pod3
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod
index 68573e3d49..d61fad662f 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<$[>