GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TIE::ARRAY::SORTED::LAZY (3)

.ds Aq ’

NAME

Tie::Array::Sorted::Lazy - An array which is kept sorted

CONTENTS

SYNOPSIS



        use Tie::Array::Sorted::Lazy;

        tie @a, "Tie::Array::Sorted::Lazy", sub { $_[0] <=> $_[1] };

        push @a, 10, 4, 7, 3, 4;
        print "@a"; # "3 4 4 7 10"



DESCRIPTION

This is a version Tie::Array::Sorted optimised for arrays which are stored to more often than fetching. In this case the array is resorted on retrieval, rather than insertion. (It only re-sorts if data has been modified since the last sort).



        tie @a, "Tie::Array::Sorted::Lazy", sub { -s $_[0] <=> -s $_[1] };



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TIE::ARRAY::SORTED::LAZY (3) 2004-10-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.