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

List::Part 0.03

  Date Added: August 19, 2010  |  Visits: 970

List::Part

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



List::Part is a Perl module that allows you to partition one array into several. SYNOPSIS use List::Part; ($good, $bad)=part { !/substring/ } @array; #store arrayrefs into $good and $bad (*good, *bad)=part { !/substring/ } @array; #store into @good and @bad ABSTRACT List::Part implements the part function, allowing one array to be "partitioned" into several based on the results of a code reference. There are many applications in which the items of a list need to be categorized. For example, lets say you want to categorize lines in a log file: my($success, $failure)=part { /^ERR/ } ; Or, suppose you have a list of employees, and you need to determine their fate: my($lay_off, $give_raise, $keep)=part { $_->is_talented ? 0 : $_->is_executive ? 1 : 2 } @employees; Actually, the second one is better suited to parts alternate form, parta: my($lay_off, $give_raise, $keep)=parta [ sub { $_->talented }, sub { $_->is_executive }, qr// ] => @employees; Or maybe you just want yet another way to write the traditional Perl signoff: perl -MList::Part -e"print map{@$_}part{$i++%5}split,JAercunrlkso ettPHr hea," List::Part can help you do those sorts of things..

Requirements: No special requirements
Platforms: Linux
Keyword: Array Libraries Listpart Module One Part Partition Perl Perl Module Programming
Users rating: 0/10

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


LIST::PART RELATED
Security Tools  -  Authen::OTP 1.0.0
Authen::OTP is a One Time Password perl module implementing RFC 2289. It goes beyond computing the nth OTP. It helps admins maintain users OTP passwords, authenticates users, updates their current states, provides the challenges, etc. It can...
17.41 KB  
Programming  -  NodeTree 0.2
Most XML libraries fit into one of two categories; they either parse XML streams with callbacks for each event encountered but leave it to the user to store and organize these events (such as expat or SAX), or they parse the entire XML document...
20.48 KB  
Games  -  Carl's Pong 1.0
The international Autonomous Robot Contest, or iARoC, is a robot contest located in San Diego, California (San Diego County Fairgrounds, June 26-27, 2010) featuring a three-part competition of autonomous robot programming. For those interested...
629 B  
Libraries  -  Variable::Strongly::Typed::Array 1.1.0
Variable::Strongly::Typed::Array is a Perl module for strongly typed array. SYNOPSIS This class is utilized by Variable::Strongly::Typed - you dont access this directly my @array_of_ints :TYPE(int); # Each slot must contain an int my...
10.24 KB  
Libraries  -  Language::Basic::Variable 1.44
Language::Basic::Variable is a Perl module to handle parsing and implementing BASIC variables. SYNOPSIS See Language::Basic for the overview of how the Language::Basic module works. This pod page is more technical. There are two sorts of...
52.22 KB  
Libraries  -  Finance::YahooQuote 0.22
Finance::YahooQuote is a Perl module that can get stock quotes from Yahoo! Finance. SYNOPSIS use Finance::YahooQuote; # setting TIMEOUT and PROXY is optional $Finance::YahooQuote::TIMEOUT = 60; $Finance::YahooQuote::PROXY =...
22.53 KB  
Libraries  -  PDL::IO::Misc 2.4.3
PDL::IO::Misc is a Perl module with misc IO routines for PDL. rcols() Read ASCII whitespaced cols from a file into piddles and perl arrays (also see "rgrep()"). There are two calling conventions - the old version, where a pattern can be...
2.1 MB  
Libraries  -  Algorithm::Permute 0.06
Algorithm::Permute is a Perl module with handy and fast permutation with object oriented interface. SYNOPSIS use Algorithm::Permute; my $p = new Algorithm::Permute([a..d]); while (@res = $p->next) { print join(", ", @res), "n"; } my...
10.24 KB  
Libraries  -  fields::aliased 1.05
fields::aliased is a Perl module that can create aliases for object fields. SYNOPSIS package MyPackage; use strict; use fields qw($scalar @array %hash); sub new { my $class = shift; my $self = fields::new($class); return $self; }...
8.19 KB  
Libraries  -  Mail::Webmail::Yahoo 0.601
Mail::Webmail::Yahoo is a Perl module that enables bulk download of yahoo.com -based webmail. SYNOPSIS use Mail::Webmail::Yahoo; $yahoo = Mail::Webmail::Yahoo->new(%options); @folders = $yahoo->get_folder_list(); @messages =...
28.67 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