diff options
author | Jeff Pinyan <japhy@pobox.com> | 2000-10-03 12:35:42 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-04 18:11:41 +0000 |
commit | 2be86a52ebe9f7a4305f3db8c919baa59d93c973 (patch) | |
tree | 85055deb6e38d7090509634e856826bd2fdf6f2c /pod/perlrun.pod | |
parent | 94acac2aafc1077b43446093866a8a8ee20808f5 (diff) | |
download | perl-2be86a52ebe9f7a4305f3db8c919baa59d93c973.tar.gz |
Re: [ID 20000930.002] perlrun nor perldelta mention -s modification
Message-ID: <Pine.GSO.4.21.0010031634530.14163-100000@crusoe.crusoe.net>
p4raw-id: //depot/perl@7144
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r-- | pod/perlrun.pod | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 98ab39c855..d8fb12c9be 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -577,7 +577,8 @@ recognized by the C preprocessor such as "if", "else", or "define".) enables rudimentary switch parsing for switches on the command line after the program name but before any filename arguments (or before -a B<-->). Any switch found there is removed from @ARGV and sets the +an argument of B<-->). This means you can have switches with two leading +dashes (B<--help>). Any switch found there is removed from @ARGV and sets the corresponding variable in the Perl program. The following program prints "1" if the program is invoked with a B<-xyz> switch, and "abc" if it is invoked with B<-xyz=abc>. @@ -585,6 +586,9 @@ if it is invoked with B<-xyz=abc>. #!/usr/bin/perl -s if ($xyz) { print "$xyz\n" } +Do note that B<--help> creates the variable ${-help}, which is not compliant +with C<strict refs>. + =item B<-S> makes Perl use the PATH environment variable to search for the |