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

List::MRU 0.04

  Date Added: May 25, 2010  |  Visits: 712

List::MRU

Report Broken Link
Printer Friendly Version


Product Homepage
Download (77 downloads)

List::MRU is a Perl module that implements a simple fixed-size MRU-ordered list. SYNOPSIS use List::MRU; # Constructor $lm = List::MRU->new(max => 20); # Constructor with explicit eq subroutine for obj equality tests $lm = List::MRU->new(max => 20, eq => sub { $_[0]->stringify eq $_[1]->stringify }); # Constructor using explicit UUIDs $lm - List::MRU->new(max => 5, uuid => 1); # Add item, moving to head of list if already exists $lm->add($item); # Add item, moving to head of list if $uuid matches or object already exists $lm->add($item, $uuid); # Iterate in most-recently-added order for $item ($lm->list) { print "$itemn"; } # each-style iteration while (($item, $uuid) = $lm->each) { print "$item, $uuidn"; } # Item deletion $lm->delete($item); $lm->delete(uuid => $uuid); # Accessors $max = $lm->max; # max items in list $count = $lm->count; # current items in list Perl module implementing a simple fixed-size most-recently-used- (MRU)-ordered list of values/objects. Well, really its a most- recently-added list - items added to the list are just promoted to the front of the list if they already exist, otherwise they are added there. Works fine with with non-scalar items, but you will need to supply an explicit eq subroutine to the constructor to handle testing for the same object (or alternatively have overloaded the eq operator for your object). List::MRU also supports having explicit UUIDs attached to items, allowing List::MRU items to be modified, instead of a change just creating a new entry..

Requirements: No special requirements
Platforms: Linux
Keyword: Item Items Libraries List Listmru Max Mru Perl Perl Module Programming Uuid
Users rating: 0/10

License: Freeware Size: 4.1 KB
LIST::MRU RELATED
Libraries  -  Convert::Wiki::Node::Item 0.05
Convert::Wiki::Node::Item is a Perl module that represents an item in a list (aka or *). SYNOPSIS use Convert::Wiki::Node::Item; my $para = Convert::Wiki::Node->new( txt => Foo is a foobar., type => item ); print $para->as_wiki(); #...
19.46 KB  
Libraries  -  List::Compare 0.33
List::Compare is a Perl module to compare elements of two or more lists. SYNOPSIS The bare essentials: @Llist = qw(abel abel baker camera delta edward fargo golfer); @Rlist = qw(baker camera delta delta edward fargo golfer hilton); $lc =...
184.32 KB  
Libraries  -  List::Util::Superpositions 1.1
List::Util::Superpositions is a Perl module that provides any and all for lists. Synopsis This module extends the methods provided by List::Util to offer the any() and all() operators from Quantum::Superpositions as part of the List::Util...
5.12 KB  
Libraries  -  Wx::Perl::Packager 0.07
Wx::Perl::Packager provides a module to assist packaging Wx based applications with PAR, ActiveState PerlApp / PDK and Perl A module to assist packaging Wx based applications with PAR, ActiveState PerlApp / PDK and Perl2Exe. All that is needed...
12.29 KB  
Libraries  -  Tk::JComboBox 1.14
Tk::JComboBox is a Perl module that can create and manipulate JComboBox widgets. SYNOPSIS $jcb = $parent->JComboBox(?options); JComboBox is a composite widget that contains a text Label or Entry, a Button, and a popup Listbox. It performs...
64.51 KB  
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.
 
Finance  -  Expense List 2.5
Expense List, Version 2.5 ------NOTE - this free version is limited to saving 50 Expense Items. After an In-App Purchase, it can save over 500 expense items. Expense List keeps track of expenses, grouping and listing the expenses into...
1.7 MB  
Productivity  -  Grocery Genius Free 1.0
This app will save you tons of time! It is quick and easy to use. Grocery Genius organizes your Grocery items by category. After you add an item to your list it will always be there (no more typing). With the tap of a finger you can quickly...
1.7 MB  
Productivity  -  Magic Selector 1.0.0.0
This Windows Phone 8 Application lets you magically pick an item from a list you enter. The list can have up to 99 items and they will automatically be saved. Use the Add, Remove and Clear buttons to edit the list. The list will be shuffled when...
1024 KB  
Libraries  -  Sort::Versions 1.5
Sort::Versions is a Perl 5 module for sorting of revision-like numbers. SYNOPSIS use Sort::Versions; @l = sort { versioncmp($a, $b) } qw( 1.2 1.2.0 1.2a.0 1.2.a 1.a 02.a ); ... use Sort::Versions; print lower if versioncmp(1.2, 1.2a) ==...
5.12 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.12.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