Tie::Array::Sorted represents an ordinary array, which is kept sorted.

All pushes and unshifts cause the elements in question to be inserted in
the appropriate location to maintain order.

Direct stores ($a[10] = "wibble") effectively splice out the original
value and insert the new element. It's not clear why you'd want to use
direct stores like that, but this module does the right thing if you do.

WWW: http://search.cpan.org/dist/Tie-Array-Sorted/
This commit is contained in:
Roman Kulik 2005-07-15 21:18:23 +00:00 committed by Thomas Klausner
parent 899343b4f2
commit 24912d209c
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,9 @@
Tie::Array::Sorted represents an ordinary array, which is kept sorted.
All pushes and unshifts cause the elements in question to be inserted in
the appropriate location to maintain order.
Direct stores ($a[10] = "wibble") effectively splice out the original
value and insert the new element. It's not clear why you'd want to use
direct stores like that, but this module does the right thing if you do.
WWW: http://search.cpan.org/dist/Tie-Array-Sorted/

View file

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.1.1.1 2005/07/15 21:18:23 kuli0020 Exp $
DISTNAME= Tie-Array-Sorted-1.3
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Tie/}
MAINTAINER= kuli0020@umn.edu
HOMEPAGE= http://search.cpan.org/dist/Tie-Array-Sorted/
COMMENT= Perl array which is kept sorted
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Tie/Array/Sorted/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2005/07/15 21:18:23 kuli0020 Exp $

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2005/07/15 21:18:23 kuli0020 Exp $
SHA1 (Tie-Array-Sorted-1.3.tar.gz) = e9a7d48abdd3f7b56feb7c59c774840f4ff48d66
RMD160 (Tie-Array-Sorted-1.3.tar.gz) = 1591a81071460793e175db4bb8a0d610119f2888
Size (Tie-Array-Sorted-1.3.tar.gz) = 2958 bytes