diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-01-25 16:57:19 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-01-25 16:57:19 +0100 |
commit | 52c447a82d7db5d9640813b729e0621880550564 (patch) | |
tree | 70d259dd88d6c8de2814749eac7fcff74b7d2fdd | |
parent | 8afc33d62997aaa3a5e8c389cb908f2d4b3cd31f (diff) | |
download | perl-52c447a82d7db5d9640813b729e0621880550564.tar.gz |
Document that $0 is set to "-e" when perl is run with -e or -E
-rw-r--r-- | pod/perlvar.pod | 3 |
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<$[> |