diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-21 23:02:03 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-21 23:02:03 +0000 |
commit | 1b946c1ed5726bfcc464a040aa1acac0df1395c5 (patch) | |
tree | c4eb53c81d481d44c5f1db4355d95b4bf163ce91 /lib/Getopt | |
parent | 86a5040c5a91f7c3b776b243300d5415c6c58021 (diff) | |
download | perl-1b946c1ed5726bfcc464a040aa1acac0df1395c5.tar.gz |
Getopt::Std clarification from John Borwick.
p4raw-id: //depot/perl@16728
Diffstat (limited to 'lib/Getopt')
-rw-r--r-- | lib/Getopt/Std.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Getopt/Std.pm b/lib/Getopt/Std.pm index 1e6413b4e1..4599ec54d8 100644 --- a/lib/Getopt/Std.pm +++ b/lib/Getopt/Std.pm @@ -23,9 +23,9 @@ getopts - Process single-character switches with switch clustering The getopt() function processes single-character switches with switch clustering. Pass one argument which is a string containing all switches that take an argument. For each switch found, sets $opt_x (where x is the -switch name) to the value of the argument, or 1 if no argument. Switches -which take an argument don't care whether there is a space between the -switch and the argument. +switch name) to the value of the argument if an argument is expected, +or 1 otherwise. Switches which take an argument don't care whether +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 |