Getopt::Long 2.35 review

Download
by rbytes.net on

Getopt::Long is an extended processing of command line options. SYNOPSIS use Getopt::Long; my $data = "file.dat"; my

License: Perl Artistic License
File size: 35K
Developer: Johan Vromans
0 stars award from rbytes.net

Getopt::Long is an extended processing of command line options.

SYNOPSIS

use Getopt::Long;
my $data = "file.dat";
my $length = 24;
my $verbose;
$result = GetOptions ("length=i" => $length, # numeric
"file=s" => $data, # string
"verbose" => $verbose); # flag

The Getopt::Long module implements an extended getopt function called GetOptions(). This function adheres to the POSIX syntax for command line options, with GNU extensions.

In general, this means that options have long names instead of single letters, and are introduced with a double dash "--". Support for bundling of command line options, as was the case with the more traditional single-letter approach, is provided but not enabled by default.

Requirements:
Perl

Getopt::Long 2.35 search tags