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

Object::Declare 0.13

  Date Added: October 08, 2010  |  Visits: 833

Object::Declare

Report Broken Link
Printer Friendly Version


Product Homepage
Download (99 downloads)



Object::Declare is a Perl module for declarative object constructor. SYNOPSIS use Object::Declare [MyApp::Column, MyApp::Param]; my %objects = declare { param foo => !is global, is immutable, valid_values are qw( more values ); column bar => field1 is value, field2 is some_other_value; }; print $objects{foo}; # a MyApp::Param object print $objects{bar}; # a MyApp::Column object This module exports one function, declare, for building named objects with a declarative syntax, similar to how Jifty::DBI::Schema defines its columns. In list context, declare returns a list of name/object pairs in the order of declaration (allowing duplicates), suitable for putting into a hash. In scalar context, declare returns a hash reference. Using a flexible import interface, one can change exported helper functions names (declarator), words to link labels and values together (copula), and the table of named classes to declare (mapping): use Object::Declare declarator => [declare], # list of declarators copula => { # list of words, or a map is => , # from copula to prefixes for are => , # labels built with that copula } aliases => { # list of label aliases: more => less, # turns "is more" into "is less" # and "more is 1" into "less is 1" }, mapping => { column => MyApp::Column, # class name to call ->new to param => sub { # arbitrary coderef also works bless(@_, MyApp::Param); }, }; After the declarator block finishes execution, all helper functions are removed from the package. Same-named functions (such as &is and &are) that existed before the declarators execution are restored correctly..

Requirements: No special requirements
Platforms: Linux
Keyword: Declarative Declare Libraries List List Of Module Myapp Object Objectdeclare Perl Perl Module Programming
Users rating: 0/10

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


OBJECT::DECLARE RELATED
Development Tools  -  Converting a list of equal length lists into XML 1.0
This module takes a list of equal length lists and converts it into XML. If the first sublist is a list of headings, these are used to form the element names of the rest of the data, or these can be defined in the function call. Root and "row"...
 
Miscellaneous  -  A List of Dictionaries 1.0
This  class emulates a list of dictionary objects without the memory and pickle storage overhead which occurs when storing every item in the list as a dictionary.
 
Miscellaneous  -  Transposing a List of Lists 1.0
This script allows you to transpose a list of lists of different lengths.
 
Screen Savers  -  To Do - Create Check List Of Things To D 1.0
"To Do - Create Check List Of Things To Do's lets you keep track of important tasks and meetings. Do you have trouble remembering the last time you missed you meeting? Checked your credit score? Cooked tonight? With a simple, clean, and elegant...
1.3 MB  
Networking  -  List of references 1.0
Generates a list of links used in a post. This can be used to create a list of references like those in scientific publications. Add [lor] at the end of your post (or wherever you want the list of references) and add a title attribute to all links...
10 KB  
Networking  -  Search for list of name server addresses 1.2
This script contains a function named RegistryResolve() that returns a list of ip numbers (dotted quads), by scouring the registry for addresses of name servers.Program doesn't check whether an interface is up or down.
 
Networking  -  List of Posts from each Category plugin for WordPress 2.0
List of Posts from each Category plugin for WordPressThis plugin displays a list of the posts from each category of your WordPress installation. It can be added to a post or page, or used directly in a template file. In the plugind¬DSdus...
10 KB  
Modules  -  Recent Love - A List of Recent Comments 0.5
Displays a list (typically, in your sidebar) of your visitors' recent comments. By default, shows the latest comment from each of the last five commented-on posts.You control: * how many recent comments to display * how many characters of the post...
20.48 KB  
Libraries  -  Acme::Hyperindex 0.12
Acme::Hyperindex is a Perl module to look deep into structures using a list of indexes. SYNOPSIS use strict; use Acme::Hyperindex; my @struct = ( { j_psi => [qw( eta_prime phi kaon )] }, { j_psi => [qw( selectron down tau_sneutrino )] },...
4.1 KB  
Audio Tools  -  dialog-mp3-list 0.60
dialog-mp3-list generates an organized list of your CDs and directories of MP3s. It shows a numbered list of MP3s with information on their encoding speed and track lengths. It uses Dialog/XDialog and Latex to create lists in .tex, .ps, and .pdf...
77.82 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