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

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

Serving Software Downloads in 956 Categories, Downloaded 50.195.577 Times

Getopt::OO 0.07

  Date Added: November 14, 2010  |  Visits: 787

Getopt::OO

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



Getopt::OO is an object oriented command line parser. It handles short, long and multi (--x ... -) value options. Getopt::OO module also incorporates help for options to simplify generation of usage statements. SYNOPSIS use Getopt::OO qw(Debug Verbose); my ($handle) = Getopt::OO->new(@ARGV, -d => { help => turn on debug output, callback => sub {Debug(1); 0}, }, -o => { help => another option., }, -f => { help => option that expects one more value., n_values => 1, }, --long { help => long option }, --multiple_ => { help => [ "Everything between --multiple_values and - is", "an value for this options", ], multi_value => 1, multiple= => 1, # Can happen more than once on command line. }, other_values => { help => file_1 ... file_n, multi_value => 1, }, ); if ($handle->Values()) { Debug("You will get output if -d was on command line"); if (my $f = handle->Values(-f)) { print "Got $f with the -f value.n"; } } else { print "No options found on command line.n"; } Getopt::OO is an object oriented tool for parsing command line arguments. It expects a reference to the input arguments and uses a perl hash to describe how the command line arguments should be parsed. Note that by parsed, we mean what options expect values, etc. We check to make sure values exist on the command line as necessary -- nothing else. The caller is responsible for making sure that a value that he knows should be a file exists, is writable, or whatever. Command line arguments can be broken into two distinct types: options and values that are associated with these options. In windows, options often start with a / but sometimes with a -, but in unix they almost universally start with a -. For this module options start with a -. We support two types of options: the short single dashed options and the long double dashed options. The difference between these two is that with this module the short options can be combined into a single option, but the long options can not. For example, most of us will be familiar with the tar -xvf file command which can also be expressed as -x -v -f file. Long options can not be combined this way, so --help for example must always stand by itself. The input template expects the option names as its keys. For instance if you were expecting -xv --hello as possible command line options, the keys for your template hash would be -x, -v, and --hello..

Requirements: No special requirements
Platforms: Linux
Keyword: Command Command Line Command Line Arguments File Getoptoo Help Libraries Line Object Oriented Oo Options Programming Values
Users rating: 0/10

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


GETOPT::OO RELATED
Libraries  -  CVS Perl library 0.07
CVS Perl library is a Perl module which is a wrapper around the CVS command with an object-oriented interface. Installation: To install this module type the following: perl Makefile.PL make make test make install.
24.58 KB  
Libraries  -  File::Basename::Object 0.01
File::Basename::Object is a Perl module with object-oriented syntax sugar for File::Basename. SYNOPSIS my $file = File::Basename::Object->new("/path/to/a/file.html", ".htm", ".html"); if(open(my $fh, <, $file)) { print "Now reading ",...
4.1 KB  
Utilities  -  dispatch 0.0.2a
dispatch is a multi-tier architecture object-oriented framework that allows access to methods and variables at the command line and in shell scripts or via a GUI. The project is in an early stage and you will probably not be able to compile it...
12.29 KB  
Firewalls  -  Firewall Builder for PIX 2.1.11
Firewall Builder is multi-platform firewall configuration and management tool. It consists of a GUI and set of policy compilers for various firewall platforms. Firewall Builder uses object-oriented approach, it helps administrator maintain a...
296.96 KB  
Science  -  gbwget 0.3.5
gbwget is a command line/screen oriented tool to search in nucleotideor protein databases and to view or retrieve database entries. It can easily integrated into the EMBOSS seqence analysis Suite can also be used standalone.
17.58 KB  
Libraries  -  Audio::MadJACK 0.04
Audio::MadJACK is a Perl module to talk to MadJACK server using Object Oriented Perl. SYNOPSIS use Audio::MadJACK; my $mj = new Audio::MadJACK( osc.udp://madjack.example.net:4444/ ); $mj->load( Playlist_A/mymusic.mp3 ); $mj->play(); The...
5.12 KB  
Networking  -  Max's File Uploader Script 1.0
Max's File Uploader is an object oriented file uploder script written in PHP. Installation and setup is very easy. You only need to upload the relevant files and insert some line of code into your own script.An example code is attached into the...
10 KB  
Video Editors  -  vidprofile 0.80
vidprofile project is a collection of a few components designed to fully test mpeg2enc from mjpegtools. vidprofile was made to answer the question: Given a file size limit, what are the best mpeg2enc options (and values) to use which give the...
77.82 KB  
Multimedia & Graphics  -  Apriori 5.64
Apriori is a small, simple, command prompt application designed to help you find association rules and frequent item sets (also closed and maximal) with the apriori algorithm, which carries out a breadth first search on the subset lattice and...
 
Development Editors  -  USL 3.8.4 Beta
USL is an object-oriented scripting language written with C++ and compiled on both Linux and Windows. Without a script, USL is a programmable command shell. There is no socket programming with USL. USL is for general purpose scripting locally.
2.8 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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