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.164 Times

Getopt::GetArgs 1.03

  Date Added: April 14, 2010  |  Visits: 840

Getopt::GetArgs

Report Broken Link
Printer Friendly Version


Product Homepage
Download (86 downloads)



GetArgs is a Perl module to allow enhanced argument passing, including passing of case-insensitive named arguments as well as positioned arguments. SYNOPSIS sub WHATEVER { my @DEFAULT_ARGS = ( Content => "Default content", Verbose => 0 ); my %ARGS=GetArgs(@_,@DEFAULT_ARGS); # do some stuff with $ARGS{Content} # show all kinds of detail if $ARGS{Verbose} } # a simple call to WHATEVER WHATEVER( "Just deal with my content" ); # a flexible call to WHATEVER WHATEVER({ verbose => 1, content => "This is my content", }); GetArgs needs to know * what your subroutine was passed, * and what it expected to be passed. * If you like, you can also supply default values to use when an argument is not passed. Using this information, GetArgs will create a hash of arguments for you to use throughout your subroutine. Using GetArgs has several advantages: 1) Calls to your subroutine can pass named arguments, making the code more readable. 2) If its easier to pass a list of arguments as you normally would, thats fine. 3) With GetArgs your use of arguments in your subroutine code is more readable. 4) Your subroutines are no longer limited in the number of arguments they expect. 5) Arguments can be passed in any order (if passed inside the hash ref), thus only the arguments relevant to that call need to be passed--unnecessary arguments can be ignored. 6) Case is not important, as GetArgs matches argument names case insensitively..

Requirements: No special requirements
Platforms: Linux
Keyword: Argument Arguments Content Getargs Getoptgetargs Libraries Module Passed Perl Perl Module Programming Whatever
Users rating: 0/10

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


GETOPT::GETARGS RELATED
Modules  -  CK Field Definitions 6.x-1.1
Note: Since the inclusion of CCK functionality into Drupal 7 core under the Field API, the Drupal 7 version of this module will be part of the Field definitions project. It features a slightly refactored code base and integration with the Field...
10 KB  
Modules  -  Title Rewrite 1.0
The override text may include dynamic content using the Token module. Rules are applied based on the path to the page being displayed, thus any page (not just a node) can have its title rewritten.Rules are evaluated by their weight. Lighter rules...
 
Information Lookup  -  Constructioner Light Edition 2.5
Constructioner Light Edition enables you to build up database-connected websites with Content Management System ('CMS') and dynamic menus without any programming skills. For developers who create their HTML-Layout within Dreamweaver, a useful...
1.62 MB  
Modules  -  Content Type Administration by Organic Group 6.x-1.2
Since the permission system only lets the admin allow/disallow creation of content types and can't specify WHERE they can be used, this module tries to solve that problem. This module allows the admin to limit content types available site-wide and...
20.48 KB  
Modules  -  Content administration 6.x-1.0-beta2
This module provides a dynamic interface for content administration.It is intended to supplement Drupal's built-in content management page, and features these improvements over the standard interface: * Uses AHAH to show node previews and node...
20.48 KB  
Libraries  -  Geography::States 2.1
Geography::States is a Perl module with map states and provinces to their codes, and vice versa. SYNOPSIS use Geography::States; my $obj = Geography::States -> new (COUNTRY [, STRICT]); EXAMPLES my $canada = Geography::States -> new...
6.14 KB  
Libraries  -  Devel::TraceMethods 1.00
Devel::TraceMethods is a Perl module for tracing module calls. SYNOPSIS use Devel::TraceMethods qw( PackageOne PackageTwo ); Devel::TraceMethods allows you to attach a logging subroutine of your choosing to all of the methods and functions...
5.12 KB  
Libraries  -  CAM::PDF::Content 1.07
CAM::PDF::Content is a PDF page layout parser. SYNOPSIS use CAM::PDF; my $pdf = CAM::PDF->new($filename); my $contentTree = $pdf->getPageContentTree(4); $contentTree->validate() || die Syntax error; print...
737.28 KB  
Libraries  -  Tie::CountLoop 1.5
Tie::CountLoop is a Perl module that helps you have a counter looping in a scalar with min max and increment value. SYNOPSIS use Tie::CountLoop; tie my $counter , Tie::CountLoop,15 ,-1 ,15 ,7 ,0; my $t = tied $counter; $t->increment( 1 );...
3.07 KB  
Libraries  -  FreezeThaw 0.43
FreezeThaw is a Perl module for converting Perl structures to strings and back. SYNOPSIS use FreezeThaw qw(freeze thaw cmpStr safeFreeze cmpStrHard); $string = freeze $data1, $data2, $data3; ... ($olddata1, $olddata2, $olddata3) = thaw...
10.24 KB  
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