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 49.485.474 Times

Hash::Type 1.05

  Date Added: April 14, 2010  |  Visits: 988

Hash::Type

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 downloads)



Hash::Type module contains pseudo-hashes as arrays tied to a "type" (list of fields). SYNOPSIS use Hash::Type; # create a Hash::Type my $personType = new Hash::Type(qw(firstname lastname city)); # create and populate some hashes tied to $personType tie %wolfgang, $personType, "wolfgang amadeus", "mozart", "salzburg"; $ludwig = new $personType ("ludwig", "van beethoven", "vienna"); $jsb = new $personType; $jsb->{city} = "leipzig"; @{$jsb}{qw(firstname lastname)} = ("johann sebastian", "bach"); # add fields dynamically $personType->add("birth", "death") or die "fields not added"; $wolfgang{birth} = 1750; # More complete example : read a flat file with headers on first line my ($headerline, @datalines) = map {chomp; $_} ; my $ht = new Hash::Type(split /t/, $headerline); foreach my $line (@datalines) { my $data = new $ht(split /t/, $line); work_with($data->{someField}, $data->{someOtherField}); } # an alternative to Time::gmtime and Time::localtime my $timeType = new Hash::Type qw(sec min hour mday mon year wday yday); my $localtime = new $timeType (localtime); my $gmtime = new $timeType (gmtime); print $localtime->{hour} - $gmtime->{hour}, " hours difference to GMT"; # comparison functions my $byAge = $personType->cmp("birth : -num, lastname, firstname"); my $byNameLength = $personType->cmp(lastname => {length($b) <=> length($a)}, lastname => alpha, firstname => alpha); showPerson($_) foreach (sort $byAge @people); showPerson($_) foreach (sort $byNameLength @people); # special comparisons : dates my $US_DateCmp = $myHashType->cmp("someDateField : m/d/y"); my $FR_InverseDateCmp = $myHashType->cmp("someDateField : -d.m.y");.

Requirements: No special requirements
Platforms: Linux
Keyword: Fields Hashtype Lastname Libraries List List Of Module New Programming Tied
Users rating: 0/10

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


HASH::TYPE 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  -  Suggested Terms 1.0
It replaces the description field on free-tagging fields with a clickable list of previously entered terms. If javascript is not enabled the list will still appear but not be clickable.Installation - Unpack in your modules folder (usually...
 
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  
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