Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Getopt::Long::Descriptive 0.090

    Download button

    No screenshots available
    Downloads: 391  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.1/5)
    10 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Hans Dieter Pearcey | More programs
    Perl Artistic License / FREE
    April 23rd, 2011, 03:31 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Getopt::Long::Descriptive description

    a Getopt::Long module with usage text.

    Getopt::Long::Descriptive is a Getopt::Long module with usage text.

    SYNOPSIS

    use Getopt::Long::Descriptive;
    my ($opts, $usage) = describe_options($format, @opts, %arg);


    FORMAT

    $format = "usage: myprog %o myarg...";

    %o will be replaced with a list of the short options, as well as the text "[long options...]" if any have been defined.

    %c will be replaced with what Getopt::Long::Descriptive thinks is the program name (see "prog_name"). You can override this guess by calling prog_name($string) yourself.

    Because of this, any literal % symbols will need to be written as %%.

    OPTIONS

    Option specifications are the same as in Getopt::Long. You should pass in an array of arrayrefs whose first elements are option specs and whose second elements are descriptions.

    my @opts = (
    [ "verbose|V" => "be noisy" ],
    [ "logfile=s" => "file to log to" ],
    );


    Option specifications may have a third hashref argument. If present, this configures extra restrictions on the value or presence of that option.
    You may cause a blank line to be printed by passing an empty arrayref. Likewise, a plain descriptive line will be printed if you pass an arrayref with a single element:

    @opts = (
    $option,
    [],
    [ 'other options:' ],
    $other_option,
    );


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Getopt::Long module | usage text | Perl module | perl | Getopt::Long | module

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM