File::QueuePersistent FIFO queue implemented in pure perl! | |
Download |
File::Queue Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jason Lavold
- Publisher web site:
- http://search.cpan.org/~jlavold/
File::Queue Tags
File::Queue Description
Persistent FIFO queue implemented in pure perl! File::Queue is a persistent FIFO queue implemented in pure Perl!SYNOPSIS use strict; # always! use File::Queue; my $q = new File::Queue (File => '/var/spool/yourprog/queue'); $q->enq('some flat text1'); $q->enq('some flat text2'); $q->enq('some flat text3'); # Get up to first 10 elements my $contents = $q->peek(10); my $elem1 = $q->deq(); my $elem2 = $q->deq(); # empty the queue $q->reset();This module allows for the creation of persistent FIFO queue objects.File::Queue only handles scalars as queue elements. If you want to work with references, serialize them first!The module was written with speed in mind, and it is very fast, but it should be used with care. Please refer to the CAVEATS section. Requirements: · Perl
File::Queue Related Software