FILE: C:\Program Files (x86)\Plesk\perl\lib\Getopt\Std.pm
--
package Getopt::Std;
use strict;
use warnings;
require Exporter;
=head1 NAME
Getopt::Std - Process single-character switches with switch clustering
=head1 SYNOPSIS
use Getopt::Std;
getopts('oif:'); # -o & -i are boolean flags, -f takes an argument
# Sets $opt_* global variables as a side effect
getopts('oif:', \my %opts); # Options as above, values in %opts
getopt('oDI'); # -o, -D & -I take arguments
# Sets $opt_* global variables as a side effect
getopt('oDI', \my %opts); # -o, -D & -I take arg, values in %opts
=head1 DESCRIPTION
The C function processes single-character switches with switch
clustering. Pass one argument which is a string containing all switches to be
recognized. For each switch found, if an argument is expected and provided,
C sets C<$opt_x> (where C is the switch name) to the value of
the argument. If an argument is expected but none is provided, C<$opt_x> is
set to an undefined value. If a switch does not take an argument, C<$opt_x>
is set to C<1>.
Switches which take an argument don't care whether there is a space between
the switch and the argument. If unspecified switches are found on the
command-line, the user will be warned that an unknown option was given.
The C function returns true unless an invalid option was found.
The C function is similar, but its argument is a string containing
all switches that take an argument. If no argument is provided for a switch,
say, C, the corresponding C<$opt_y> will be set to an undefined value.
Unspecified switches are silently accepted. Use of C is B.
Note that, if your code is running under the recommended C