Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.874.054 Times

Getopt::Declare 1.11

  Date Added: April 08, 2010  |  Visits: 651

Getopt::Declare

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



Getopt::Declare is a Perl module with Declaratively Expressed Command-Line Arguments via Regular Expressions. SYNOPSIS use Getopt::Declare; $args = Getopt::Declare->new($specification_string, $optional_source); # or: use Getopt::Declare $specification_string => $args; Getopt::Declare is yet another command-line argument parser, one which is specifically designed to be powerful but exceptionally easy to use. To parse the command-line in @ARGV, one simply creates a Getopt::Declare object, by passing Getopt::Declare::new() a specification of the various parameters that may be encountered: use Getopt::Declare; $args = Getopt::Declare->new($specification); This may also be done in a one-liner: use Getopt::Declare, $specification => $args; The specification is a single string such as this: $specification = q( -a Process all data -b < N:n > Set mean byte length threshold to { bytelen = $N; } +c < FILE > Create new file --del Delete old file { delold() } delete [ditto] e < H:i >x< W:i > Expand image to height < H > and width < W > { expand($H,$W); } -F < file >... Process named file(s) { defer {for (@file) {process()}} } =getrand [< N >] Get a random number (or, optionally, < N > of them) { $N = 1 unless defined $N; } -- Traditionally indicates end of arguments { finish }.

Requirements: No special requirements
Platforms: Linux
Keyword: Arguments Command-line Command-line Arguments Declaratively Expressed Command File Getoptdeclare Libraries Line Arguments Regular Expressions Perl Module Programming Regular Specification
Users rating: 0/10

License: Freeware Size: 35.84 KB
USER REVIEWS
More Reviews or Write Review


GETOPT::DECLARE RELATED
Libraries  -  Getopt::Euclid 0.1.0
Getopt::Euclid is Perl module executable uniform command-Line interface descriptions. SYNOPSIS use Getopt::Euclid; if ($ARGV{-i}) { print "Interactive mode...n"; } for my $x (0..$ARGV{-size}{h}-1) { for my $y (0..$ARGV{-size}{w}-1) {...
24.58 KB  
Libraries  -  App::Options 1.02
App::Options is Perl module to combine command line options, environment vars, and option file values (for program configuration). SYNOPSIS #!/usr/local/bin/perl use App::Options; # reads option values into %App::options by default # do...
33.79 KB  
Libraries  -  Getopt::Clade 0.0.1
Getopt::Clade is a Perl module with command-Line Argument Declaration Engine. This module is a placeholder for the real Getopt::Clade module. The module was supposed to be released by July 2005, to support the book "Perl Best Practices"....
3.07 KB  
Libraries  -  Net::Appliance::Phrasebook 0.08
Net::Appliance::Phrasebook is a Perl module for network appliance command-line phrasebook. SYNOPSIS use Net::Appliance::Phrasebook; my $pb = Net::Appliance::Phrasebook->new( platform => IOS, source => /a/file/somewhere.yml, # optional );...
7.17 KB  
Libraries  -  Getopt::EvaP 2.3.5
Getopt::EvaP is a Perl module to evaluate Perl command line parameters. SYNOPSIS use vars qw/@PDT @MM %OPT/; use Getopt::EvaP; EvaP @PDT, @MM, %OPT; EXPORT use Getopt::EvaP exports the subs EvaP and EvaP_PAC into your name space. @PDT...
52.22 KB  
Libraries  -  POE::Component::ControlPort::Command 0.01
POE::Component::ControlPort::Command is a Perl module with register control port commands. SYNOPSIS use POE::Component::ControlPort::Command; POE::Component::ControlPort::Command->register( name => test, topic => sample_commands, usage =>...
12.29 KB  
Libraries  -  Filesys::DiskFree 0.06
Filesys::DiskFree is a Perl module to perform the Unix command df in a portable fashion. SYNOPSIS use Filesys::DiskFree; $handle = new Filesys::DiskFree; $handle->df(); print "The root device is ".$handle->device("/")."n"; print "It has...
5.12 KB  
Libraries  -  SVK::Command::Help 1.08
SVK::Command::Help is a Perl module to show help. OPTIONS Optionally svk helps can pipe through a pager, for it is easier to read if the output is too long. For using this feature, please set environment variable SVKPAGER to some pager...
266.24 KB  
Libraries  -  Devel::Command::NewF 0.02
Devel::Command::NewF is a Perl module with the extended f command for the debugger. SYNOPSIS # In .perldb (or perldb.ini on Windows) use Devel::Command; # Devel::Command::NewF loaded automatically perl -de0 Patching with...
5.12 KB  
Libraries  -  Algorithm::Line::Bresenham 0.11
Algorithm::Line::Bresenham is a Perl module that contains a simple pixellated line-drawing algorithm. SYNOPSIS use Algorithm::Line::Bresenham qw/line/; my @points = line(3,3 => 5,0); # returns the list: [3,3], [4,2], [4,1], [5,0] line(3,3...
3.07 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB