Linux SoftwareProgrammingLibrariesGetopt::Simple 1.48

Getopt::Simple 1.48


Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long. SYNOPSIS use Getopt::Simple;
Developer:   Ron Savage
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   7K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long.

SYNOPSIS

use Getopt::Simple;

# Or ...
# use Getopt::Simple qw($switch);

my($options) =
{
help =>
{
type => '',
env => '-',
default => '',
# verbose => '', # Not needed on every key.
order => 1,
},
username =>
{
type => '=s', # As per Getopt::Long.
env => '$USER', # Help text.
default => $ENV{'USER'} || 'RonSavage', # In case $USER is undef.
verbose => 'Specify the username on the remote machine',
order => 3, # Help text sort order.
},
password =>
{
type => '=s',
env => '-',
default => 'password',
verbose => 'Specify the password on the remote machine',
order => 4,
},
};

my($option) = Getopt::Simple -> new();

if (! $option -> getOptions($options, "Usage: testSimple.pl [options]") )
{
exit(-1); # Failure.
}

print "username: $$option{'switch'}{'username'}. n";
print "password: $$option{'switch'}{'password'}. n";

# Or, after 'use Getopt::Simple qw($switch);' ...
# print "username: $$switch{'username'}. n";
# print "password: $$switch{'password'}. n";

Getopt::Simple is a pure Perl module.

The Getopt::Simple module provides a simple way of specifying:

Command line switches

Type information for switch values

Default values for the switches

Help text per switch

Requirements:
  • Perl
    tags getopt simple  help text  use getopt  machine order  print password  option{ switch  print username  remote machine  verbose specify  perl module  getopt long  env default  specify the  

    Download Getopt::Simple 1.48


     http://mirrors.evolva.ro/CPAN/authors/id/R/RS/RSAVAGE/Getopt-Simple-1.48.tgz


    Authors software

    DBIx::HTML::ClientDB 1.05 (by Ron Savage)
    DBIx::HTML::ClientDB is a Perl module to convert sql into a client-side db with keyed access.

    Synopsis

    use DBIx::HTML::

    Data::Page::Viewport 1.02 (by Ron Savage)
    Data::Page::Viewport is a Perl module to scroll thru data a page, or just an item, at a time.

    Synopsis

    This is a complete, test

    CGI::Explorer 2.07 (by Ron Savage)
    CGI::Explorer is a class to manage displaying a hash tree of data, for use in CGI scripts.

    Synopsis

    Install /assets/css/explore

    Getopt::Simple 1.48 (by Ron Savage)
    Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long.

    SYNOPSIS

    use Getopt::Simple;


    Similar software

    Getopt::Simple 1.48 (by Ron Savage)
    Getopt::Simple is a Perl module that provides a simple wrapper around Getopt::Long.

    SYNOPSIS

    use Getopt::Simple;

    Getopt::Long 2.35 (by Johan Vromans)
    Getopt::Long is an extended processing of command line options.

    SYNOPSIS

    use Getopt::Long;
    my $data = "file.dat";
    my

    Tk::Getopt 0.49 (by Slaven Rezic)
    Tk::Getopt is a user configuration window for Tk with interface to Getopt::Long.

    SYNOPSIS

    use Tk::Getopt;
    @opttable =

    Getopt::Function 0.017 (by Getopt::Function Team)

    Getopt::Tabular 0.3 (by Greg Ward)
    Getopt::Tabular is a Perl module for table-driven argument parsing for Perl 5.

    SYNOPSIS

    use Getopt::Tabular;
    (or)
    use

    Getopt::Helpful 0.04 (by Eric L. Wilhelm)
    Getopt::Helpful is an integrated option hash / help messages.

    STATE

    This module is still under development, but is being publis

    Getopt::OO 0.07 (by Steven Smith)
    Getopt::OO is an object oriented command line parser

    Getopt::EvaP 2.3.5 (by Stephen O. Lidie)
    Getopt::EvaP is a Perl module to evaluate Perl command line parameters.

    SYNOPSIS

    use vars qw/@PDT @MM %OPT/;
    use Getopt::Eva

    Getopt::Fancy 0.02 (by Robert Powers)
    Getopt::Fancy is an object approach to handling command line options, focusing on end user happiness.

    SYNOPSIS

    use Getopt::

    Getopt::GUI::Long 0.7 (by Wes Hardaker)
    Getopt::GUI::Long is a wrapper around Getopt::Long that extends the value of the original Getopt::Long module.

    SYNOPSIS

    use G


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags