Skip to content

Commit

Permalink
Merge d1f68b2 into 6a2e93d
Browse files Browse the repository at this point in the history
  • Loading branch information
nwc10 committed Jun 30, 2021
2 parents 6a2e93d + d1f68b2 commit 48c9a34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pod/perlrun.pod
Expand Up @@ -762,7 +762,7 @@ X<-s>
enables rudimentary switch parsing for switches on the command
line after the program name but before any filename arguments (or before
an argument of B<-->). Any switch found there is removed from @ARGV and sets the
corresponding variable in the Perl program. The following program
corresponding variable in the Perl program, in the main package. 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>.

Expand All @@ -772,7 +772,8 @@ if it is invoked with B<-xyz=abc>.
Do note that a switch like B<--help> creates the variable C<${-help}>, which is
not compliant with C<use strict "refs">. Also, when using this option on a
script with warnings enabled you may get a lot of spurious "used only once"
warnings.
warnings. For these reasons, use of B<-s> is discouraged. See L<Getopt::Long>
for much more flexible switch parsing.

=item B<-S>
X<-S>
Expand Down

0 comments on commit 48c9a34

Please sign in to comment.