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

Getopt::Attribute 1.3.2

  Date Added: November 15, 2010  |  Visits: 1.433

Getopt::Attribute

Report Broken Link
Printer Friendly Version


Product Homepage
Download (96 downloads)



Getopt::Attribute is a Perl module to attribute wrapper for Getopt::Long. SYNOPSIS use Getopt::Attribute; our $verbose : Getopt(verbose!); our $all : Getopt(all); our $size : Getopt(size=s); our $more : Getopt(more+); our @library : Getopt(library=s); our %defines : Getopt(define=s); sub quiet : Getopt(quiet) { our $quiet_msg = seen quiet } usage() if our $man : Getopt(man); ... # Meanwhile, on some command line: mypgm.pl --noverbose --all --size=23 --more --more --more --quiet --library lib/stdlib --library lib/extlib --define os=linux --define vendor=redhat --man -- foo Note: This version of the module works works with perl 5.8.0. If you need it to work with perl 5.6.x, please use an earlier version from CPAN. This module provides an attribute wrapper around Getopt::Long. Instead of declaring the options in a hash with references to the variables and subroutines affected by the options, you can use the Getopt attribute on the variables and subroutines directly. As you can see from the Synopsis, the attribute takes an argument of the same format as you would give as the hash key for Getopt::Long. See the Getopt::Long manpage for details. Note that since attributes are processed during CHECK, but assignments on newly declared variables are processed during run-time, you cant set defaults on those variables beforehand, like this: our $verbose : Getopt(verbose!) = 1; # DOES NOT WORK Instead, you have to establish defaults afterwards, like so: our $verbose : Getopt(verbose!); $verbose ||= 1; Alternatively, you can specify a default value within the Getopt attribute: our $def2 : Getopt(def2=i 42);.

Requirements: No special requirements
Platforms: Linux
Keyword: Attribute Getopt Getoptattribute Libraries Module Perl Perl Module Programming Verbose Wrapper
Users rating: 0/10

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


GETOPT::ATTRIBUTE RELATED
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  -  Getopt::Declare 1.11
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...
35.84 KB  
Libraries  -  Getopt::Function 0.017
Getopt::Function is a Perl module to provide mixed options with help information. SYNOPSIS use Getopt::Function qw(maketrue makevalue); $::opthandler = new Getopt::Function [ ], { => [ , , ] } $result = GetOptions...
13.31 KB  
Libraries  -  Getopt::Tabular 0.3
Getopt::Tabular is a Perl module for table-driven argument parsing for Perl 5. SYNOPSIS use Getopt::Tabular; (or) use Getopt::Tabular qw/GetOptions SetHelp SetHelpOption SetError GetError/; ... ≥topt::Tabular::SetHelp (long_help,...
25.6 KB  
Libraries  -  Getopt::Plus 0.98
Getopt::Plus is a Perl module with options wrapper with standard options, help system and more. FILE_SIZE_HUMAN Map from file size in bytes to human name, as hashref, keys being name (full name, lowercase, no trailing s) and abbrev...
47.1 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  -  Getopt::Popt 0.02
Getopt::Popt is a Perl interface to the popt(3) library. SYNOPSIS use Getopt::Popt qw(:all); # setup the options array push @options,new Getopt::Popt::Option( longName => "long", shortName => "l", argInfo => POPT_ARG_STRING, arg =>...
21.5 KB  
Modules  -  Visual Event 6.x-1.0
This module is a wrapper if http://sprymedia.co.uk/article/Visual+Event and provides a tool to display a visual representation of bound JS events.Events in javascript are often seen as a bit of an enigma.This is odd given that javascript is very...
10 KB  
Modules  -  Core searches Flashy 6.x-1.0
This module provides a wrapper for the Flashy video player:http://code.google.com/p/flashy/The base module depends on SWFEmbed, and provides an object-oriented API for embedding flash videos in your site. If you have the getID3() module, it will...
10 KB  
Programming  -  Jabber::SimpleSend 0.03
This module is a wrapper around Net::Jabber that allows you to do one thing simply - send Jabber messages. It is useful for daemon processes, cron jobs or in any program that you want to be able to get your attention via Jabber.
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