diff options
author | Mark-Jason Dominus <mjd@plover.com> | 2007-11-23 04:54:38 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-11-23 15:00:57 +0000 |
commit | f4b3c303600e3a7579627986f784c3ec9367abb3 (patch) | |
tree | d2846995bd92e3a65effde814c06c8e82b2216c8 /lib/Getopt | |
parent | c195e131167b24ce65760dbc38d744bc87427feb (diff) | |
download | perl-f4b3c303600e3a7579627986f784c3ec9367abb3.tar.gz |
document return value of Getopt::Std::getopts()
Message-ID: <20071123145438.6593.qmail@plover.com>
p4raw-id: //depot/perl@32466
Diffstat (limited to 'lib/Getopt')
-rw-r--r-- | lib/Getopt/Std.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Getopt/Std.pm b/lib/Getopt/Std.pm index 99f9359062..c13d7f6044 100644 --- a/lib/Getopt/Std.pm +++ b/lib/Getopt/Std.pm @@ -28,6 +28,7 @@ there is a space between the switch and the argument. The getopts() function is similar, but you should pass to it the list of all switches to be recognized. If unspecified switches are found on the command-line, the user will be warned that an unknown option was given. +The getopts() function returns true unless an invalid option was found. Note that, if your code is running under the recommended C<use strict 'vars'> pragma, you will need to declare these package variables |