From 1b946c1ed5726bfcc464a040aa1acac0df1395c5 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Tue, 21 May 2002 23:02:03 +0000 Subject: [PATCH] Getopt::Std clarification from John Borwick. p4raw-id: //depot/perl@16728 --- lib/Getopt/Std.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Getopt/Std.pm b/lib/Getopt/Std.pm index 1e6413b..4599ec5 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 -- 2.7.4