BSD Ports

devel/p5-Tie-LLHash 1.004p0 OpenBSD

ordered hashes

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, perl5

Description

This class implements an ordered hash-like object. It's a cross between a Perl hash and a linked list. Use it whenever you want the speed and structure of a Perl hash, but the orderedness of a list.

Don't use it if you want to be able to address your hash entries by number, like you can in a real list ($list[5]).

See also Tie::IxHash by Gurusamy Sarathy. It's similar (it also does ordered hashes), but it has a different internal data structure and a different flavor of usage. IxHash stores its data internally as both a hash and an array in parallel. LLHash stores its data as a bidirectional linked list, making both inserts and deletes very fast. IxHash therefore makes your hash behave more like a list than LLHash does. This module keeps more of the hash flavor.

In the other systems

SystemPortVersion
OpenBSDdevel/p5-Tie-LLHash1.004p0
FreeBSDdevel/p5-Tie-LLHash1.004
NetBSDdevel/p5-Tie-LLHash1.004nb12
DragonFlydevel/p5-Tie-LLHash1.004
HardenedBSDdevel/p5-Tie-LLHash1.004
GhostBSDdevel/p5-Tie-LLHash1.004

Install

Binary package:

pkg_add p5-Tie-LLHash

From the ports tree:

cd /usr/ports/devel/p5-Tie-LLHash && make install

Dependencies

Required by 1