diff options
-rw-r--r-- | pod/perlrun.pod | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 6eb6bbf035..ee35b11bb0 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -771,8 +771,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<-->). This means you can have switches with two leading -dashes (B<--help>). Any switch found there is removed from @ARGV and sets the +an argument of B<-->). 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>. @@ -780,7 +779,7 @@ 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 +Do note that a switch like B<--help> creates the variable ${-help}, which is not compliant with C<strict refs>. Also, when using this option on a script with warnings enabled you may get a lot of spurious "used only once" warnings. |