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

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

Serving Software Downloads in 976 Categories, Downloaded 29.860.867 Times

Hash::Type 1.05

  Date Added: April 14, 2010  |  Visits: 616

Hash::Type

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 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
Libraries  -  List::Util 1.19
List::Util Perl module contains a selection of general-utility list subroutines. SYNOPSIS use List::Util qw(first max maxstr min minstr reduce shuffle sum); List::Util contains a selection of subroutines that people have expressed would be...
44.03 KB  
Libraries  -  List::Intersperse 1.00
List::Intersperse Perl module can intersperse / unsort / disperse a list. SYNOPSIS use List::Intersperse qw/intersperseq/; @ispersed = intersperseq {substr($_[0],0,1)} qw/A1 A2 B1 B2 C1 C2/; @ispersed = List::Intersperse::intersperse qw/A...
2.05 KB  
Libraries  -  Class::Struct::FIELDS 1.1
Class::Struct::FIELDS module combine Class::Struct, base and fields. SYNOPSIS (This page documents Class::Struct::FIELDS v.1.1.) use Class::Struct::FIELDS; # declare struct, based on fields, explicit class name: struct (CLASS_NAME => {...
18.43 KB  
Libraries  -  Perl6::Builtins 0.0.3
Perl6::Builtins is a Perl module that provides erl 5 versions of the new Perl 6 builtins. SYNOPSIS use Perl6::Builtins qw( system ); system $system_cmd or die "Could not $system_cmd: $!"; my $package = caller->{package}; my $file =...
4.1 KB  
Database Tools  -  ezMySQL 1.0.0
ezMySQL can read and display the list of tables and their fields, as well the stored procedures of a given MySQL database.The code of a given procedure can also be created, updated, dropped or listed.
10 KB  
Multimedia & Graphics  -  Advanced Roots Informer New
Advanced Roots Informer is a small, command prompt based application designed to help you create a list, automatically, of the root of numbers with certain index. Basically all that you have yo do is insert the index and a limit in this...
 
Modules  -  PROG Gallery 6.x-1.x-de
Development/support of module is frozen. If it works for you - good. If not.. I`m afraid things won`t change. Do install this module only on your responsibility. I really loved developing this module, but It`s too hard for me to do that...
133.12 KB  
Photo & Video  -  7 Wonders of World 1.10.0.0
Updated Version - Minor Updates. Below is the list of the new seven wonders of the world. The wonders are arranged by construction date. Requirements: Windows Phone 8.1, Windows Phone 8, Windows Phone 7.5
1024 KB  
Shell & Desktop  -  ESBCalc - Freeware Calculator 6.2.0
ESBCalc is a Freeware Windows Scientific Calculator with Infix Notation, Brackets, Scientific Functions, Memory, Optional Paper Trail, Result History List, Customisation of the Colours/Fonts used, Customisation of the Hints, and more. Functions...
828 KB  
Musical Instrument Tools  -  CDCRC
CDCRC is a files verification software for CDs, it will scan all files in all directories of a new CD compilation and create a list of file signatures. Small enough to be conveniently included on any CD-R or CD-RW compilation and offers immediate...
9 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.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...
2.73 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