Opt

Opt can get command line options and their values.
Download

Opt Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Balaji Ramasubramanian
  • Publisher web site:
  • http://search.cpan.org/~balajiram/Opt-0.1.1/Opt.pm

Opt Tags


Opt Description

Opt can get command line options and their values. Opt can get command line options and their values.This module allows you to read command-line options and their values.This module can handle any command-line interface.SYNOPSIS use Opt; use strict; my ($error, $opt1, $opt2, $opt3, @info) = &Opt::GetOpt("-opt1:b, -opt2:s=string2, -opt3:s", "req 1, xor 2 3", @ARGV); if ($error) { print "Errors detected in specifying options.nUsage:"; } else { ### Rest of the code if ($opt1) { if ($info==1) { ### If the value is a default value print "Default value for opt2 is takenn"; } elsif ($info==3) { ### If the value is not default print "Non-default value as given = $opt2"; } } } Requirements: · Perl


Opt Related Software