Openbsd-Getopt

OpenBSD::Getopt(3p) Perl Programmers Reference Guide OpenBSD::Getopt(3p)

Openbsd-Getopt

OpenBSD::Getopt(3p) Perl Programmers Reference Guide OpenBSD::Getopt(3p) # OpenBSD::Getopt(3p) Perl Programmers Reference Guide OpenBSD::Getopt(3p) NNAAMMEE # OpenBSD::Getopt - Process single-characters switches SSYYNNOOPPSSIISS # use OpenBSD::Getopt; my $h = { 'v' => sub() { ++$opt_v; }; }; getopts('oifv:', $h); DDEESSCCRRIIPPTTIIOONN # This is similar to ggeettoopptt(3). One call to "getopts($optstring, $h)" parses all the options using the $optstring as a list of simple switches (letter) and switches with arguments (letter followed by ":"). ...