PERL Modules

PERL PACKAGES

<PLACE HOLDER>

PERL GetOptions

The GetOptions (Getopt::Long) module provides command line argument parsing capabilities.

Sample code:

use Getopt::Long;


my $help = undef;

my $file = "default_file.txt";

my $verbose = 1;


GetOptions ( "help" => \$help,

"file=s" => \$file,

"verbose=i" => \$verbose,

);


# Sample command line argument passing

# perl sample.pl -help

# perl sample.pl -verbose 3 -file non_default_file.txt


PERL POD

<PLACE HOLDER>