diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-22 19:51:47 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-22 19:51:47 +0000 |
commit | 3c0facb21e91c63c42bcfc1031a2f001e59d479c (patch) | |
tree | efd0b9e576fff268baf3c695e2b54836485caa8c | |
parent | 5455df32d1cbb1b01b3af0f9b4f432fefbd8efb7 (diff) | |
download | perl-3c0facb21e91c63c42bcfc1031a2f001e59d479c.tar.gz |
add -W and -X to -h output; fix other pod omissions
p4raw-id: //depot/perl@5211
-rw-r--r-- | perl.c | 2 | ||||
-rw-r--r-- | pod/perlrun.pod | 9 |
2 files changed, 7 insertions, 4 deletions
@@ -1907,6 +1907,8 @@ S_usage(pTHX_ char *name) /* XXX move this out into a module ? */ "-v print version, subversion (includes VERY IMPORTANT perl info)", "-V[:variable] print configuration summary (or a single Config.pm variable)", "-w enable many useful warnings (RECOMMENDED)", +"-W enable all warnings", +"-X disable all warnings", "-x[directory] strip off text before #!perl line and perhaps cd to directory", "\n", NULL diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 7767404d38..5cc1969c60 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -575,10 +575,11 @@ 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 corresponding variable in the Perl program. The following program -prints "true" if and only if the program is invoked with a B<-xyz> switch. +prints "1" if the program is invoked with a B<-xyz> switch, and "abc" +if it is invoked with B<-xyz=abc>. #!/usr/bin/perl -s - if ($xyz) { print "true\n" } + if ($xyz) { print "$xyz\n" } =item B<-S> @@ -705,12 +706,12 @@ that. =item B<-W> -Enables all warnings regardless of +Enables all warnings regardless of C<no warnings> or C<$^W>. See L<perllexwarn>. =item B<-X> -Disables all warnings regardless of +Disables all warnings regardless of C<use warnings> or C<$^W>. See L<perllexwarn>. =item B<-x> I<directory> |