Getopt::Long(3p) Perl Programmers Reference Guide Getopt::Long(3p)
Getopt::Long(3p) Perl Programmers Reference Guide Getopt::Long(3p) # Getopt::Long(3p) Perl Programmers Reference Guide Getopt::Long(3p) NNAAMMEE # Getopt::Long - Extended processing of command line options SSYYNNOOPPSSIISS # use Getopt::Long; my $data = "file.dat"; my $length = 24; my $verbose; GetOptions ("length=i" => \$length, # numeric "file=s" => \$data, # string "verbose" => \$verbose) # flag or die("Error in command line arguments\n"); DDEESSCCRRIIPPTTIIOONN # The Getopt::Long module implements an extended getopt function called GGeettOOppttiioonnss(()). ...