List::MoreUtils 0.22

List::MoreUtils 0.22

List::MoreUtils 0.22 Ranking & Summary

Ranking Click at the star to rankRanking level:
User Review: 0 (0 times) Download now
File size: 0.022 MB Platform: Any Platform License: Freeware Price: Free Download: 10 Date added: 2007-07-04 Publisher: Tassilo von Parseval Publisher URL: http://search.cpan.org/~v

List::MoreUtils 0.22 description


List::MoreUtils is a Perl module that can provide the stuff missing in List::Util.

SYNOPSIS

use List::MoreUtils qw(any all none notall true false firstidx first_index
lastidx last_index insert_after insert_after_string
apply after after_incl before before_incl indexes
firstval first_value lastval last_value each_array
each_arrayref pairwise natatime mesh zip uniq minmax);

List::MoreUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util.

All of the below functions are implementable in only a couple of lines of Perl code. Using the functions from this module however should give slightly better performance as everything is implemented in C. The pure-Perl implementation of these functions only serves as a fallback in case the C portions of this module couldnt be compiled on this machine.

any BLOCK LIST

Returns a true value if any item in LIST meets the criterion given through BLOCK. Sets $_ for each item in LIST in turn:

print "At least one value undefined"
if any { !defined($_) } @list;

Returns false otherwise, or undef if LIST is empty.

all BLOCK LIST

Returns a true value if all items in LIST meet the criterion given through BLOCK. Sets $_ for each item in LIST in turn:

print "All items defined"
if all { defined($_) } @list;

Returns false otherwise, or undef if LIST is empty.

none BLOCK LIST

Logically the negation of any. Returns a true value if no item in LIST meets the criterion given through BLOCK. Sets $_ for each item in LIST in turn:

print "No value defined"
if none { defined($_) } @list;

Returns false otherwise, or undef if LIST is empty.

notall BLOCK LIST

Logically the negation of all. Returns a true value if not all items in LIST meet the criterion given through BLOCK. Sets $_ for each item in LIST in turn:

print "Not all values defined"
if notall { defined($_) } @list;

Returns false otherwise, or undef if LIST is empty.

true BLOCK LIST

Counts the number of elements in LIST for which the criterion in BLOCK is true. Sets $_ for each item in LIST in turn:

printf "%i item(s) are defined", true { defined($_) } @list;

false BLOCK LIST

Counts the number of elements in LIST for which the criterion in BLOCK is false. Sets $_ for each item in LIST in turn:

printf "%i item(s) are not defined", false { defined($_) } @list;

firstidx BLOCK LIST

first_index BLOCK LIST

Returns the index of the first element in LIST for which the criterion in BLOCK is true. Sets $_ for each item in LIST in turn:

my @list = (1, 4, 3, 2, 4, 6);
printf "item with index %i in list is 4", firstidx { $_ == 4 } @list;
__END__
item with index 1 in list is 4

Returns -1 if no such item could be found.

first_index is an alias for firstidx.

List::MoreUtils 0.22 Screenshot

Sponsored Links
Download List::MoreUtils 0.22

List::MoreUtils 0.22 Keywords

Bookmark List::MoreUtils 0.22

Hyperlink code:
Hyperlink and Intro code:

List::MoreUtils 0.22 Copyright

WareSeeker periodically updates pricing and software information of List::MoreUtils 0.22 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of List::MoreUtils 0.22 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

List::MoreUtils 0.22 Related Software

list files 0.2

list files package prints to file list of files in a given directory.
dialog-mp3-list 0.60

dialog-mp3-list generates an organized list of your CDs and directories of MP3s.
Password List Generator 1.0

Password List Generator is a good tool to create passwords list with makepasswd and save to file.
List::Intersperse 1.00

List::Intersperse Perl module can intersperse / unsort / disperse a list.
List::RewriteElements 0.09

List::RewriteElements is a Perl module that can create a new list by rewriting elements of a first list.
List::Util 1.19

List::Util Perl module contains a selection of general-utility list subroutines.
List::MRU 0.04

List::MRU is a Perl module that implements a simple fixed-size MRU-ordered list.
Dir::List 1.4

Dir::List is a Perl module, that provides you with various information about a specified directory.
DNS List 0.2

DNS List is a BIND zone file -to- HTML script written in PHP which enables drilling down on particular hosts to view CNAME.
Mailing List 1.04

Mailing List is a Web-based, full-featured mailing list and newsletter system.
List::MoreUtils 0.22 Review:
Author name* :  
Author Email* :  
Comment* :  
Security code* :  
     
   
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Search
TOP POPULAR DOWNLOAD