Software Index
Linux Software Programming  

Tie::Queuefor Linux

download download home home   report broken
important software information
company name:
Dulaunoy Fabrice
license: Freeware
minimum requirements: · Perl
functional limitations:
Tie::Queuefor Linux description


Tie an ARRAY over a TokyTyrant DB and allow to push, pop shift data.

Tie::Queue requires TokyoTyrant (database and Perl module.) If the serialisation is required, the module Data::Serilizer is also required

The normal ARRAY function present are

push
pop
shift
exists
scalar
storesize ( to allow undef @a)

Specific function

CLEAR
SYNC
REPAIR

The following function are not implemented.

EXTEND
STORE
DELETE
SPLICE

SYNOPSIS

use Tie::Queue;
use Data::Dumper;

## Queue creation
# This queue is not re-initialised at each execution of the script
# the default namespace is 'Tie-Queue'
# and each item are non serialized
tie my @a, 'Tie::Queue', '127.0.0.1', 1978, 0;

# This queue is NOT re-initialised at each execution of the script
# and each item are non serialized
# the namespace is 'second_queue'
tie my @b, 'Tie::Queue', '127.0.0.1', 1978, 1 , 0 , 'second_queue';

## put some data in the queue
for ( 101 .. 110 )
{
push @a, $_;
}

for ( 1001 .. 1005 )
{
push @ab, $_;
}

push @b, 'some text';
push
## show the content of the queue
print Dumper( @a );
## print the size of the queue
print "size of array=". scalar @a. "
";
## remove the latest pushed element from the queue ( the newest)
$res1 = pop @a;
print "latest element $res1
";
print "size of array=". scalar @a. "
";
print Dumper( @a );
$res2 = $a[3];
print "element 3 = $res2
";
## remove the first element from the queue ( the oldest )
$res3 = shift @a;
print "first element $res3
";
print "size of array=". scalar @a. "
";
print Dumper( @a );
if ( exists $a[4] )
{
print "elem 4 exists
";
}
else
{
print "elem 4 NOT exists
";
}

if ( exists $a[40] )
{
print "elem 40 exists
";
}
else
{
print "elem 40 is NOT existing
";
}


(tied @a)->CLEAR;
print "size of array=". scalar @a. "
";

########################
# this queue is re-initialised at each execution of the script
# and each item are serialized
# and the name space is 'third_queue_serialized'
tie my @c, 'Tie::Queue', '127.0.0.1', 1978, 1 , 1 , 'third_queue_serialized';
my %test = ( a => 'key_a', b => 'key_B' , c => 3 );
print Dumper(\%test);
push @d , \%test;
my $r = pop @d;. The CPAN Search Site - search.cpan.org. Publisher of Tie::Queuefor Linux, Author of Tie::Queuefor Linux 0.19. Tie an ARRAY over a TokyTyrant DB and allow to push, pop shift data. Tie::Queue requires TokyoTyrant (database and Perl module.) If the serialisation is required, the module Data::Serilizer



Similar software
Tie::Array::QueueExpire for Linux (Popularity: ) : Tie::Array::QueueExpire is a Perl module that requires Time::HiRes, TokyoCabinet (database and perl module.) The insertion is ms unique ( 0.001 seconds ).

The normal ARRAY function present are

push
pop
shift
exits
scalar
clear
unshift (but put data 1 second ...

Bouml for Linux (Popularity: ) : Bouml is a free UML 2 tool box (under development) allowing you to specify and generate code in C , Java and Idl.

The application runs under Unix/Linux/Solaris, MacOS X and Windows. Bouml is very fast and doesn't require much memory ...

cubicweb-apycot for Linux (Popularity: ) : cubicweb-apycot is a CubicWeb component to store data from the Apycot testing framework and provides multi-criteria reports.. . Publisher of cubicweb-apycot for Linux, Author of cubicweb-apycot for Linux 1.6.0. cubicweb-apycot is a CubicWeb component to store data from the Apycot ...
Chronicle for Linux (Popularity: ) : Chronicle software is a small and fast blog compiler, written in Perl with minimal dependencies.

What is a blog compiler? It is a simple piece of software which will convert a directory of text files into static tree of HTML and ...

eAccelerator for Linux (Popularity: ) : eAccelerator is a further development from mmcache PHP Accelerator & Encoder.

eAccelerator increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated.

This version of the eAccelerator has been successfully tested ...

sqlautocode for Linux (Popularity: ) : sqlautocode is an SQLAlchemy extension to create a Python code model for a database.

This is a slightly different approach to SqlSoup, that lets you use tables without explicitly defining them.

Call autocode.py --help for a list of available self explaining options.

Example:

autocode.py ...

Sanescript for Linux (Popularity: ) : Sanescript is a Python library for creating scripts with sub-commands, and options from the command line, environment, and config files. This module is made up of two separate entities: * Config framework * Scripting framework Commands are specified which are ...
sgwi for Linux (Popularity: ) : sgwi is a web-interface to SQLGrey (SQLGrey is a greylister for Postfix).

sgwi enables you to edit the white- and blacklists as well as the current state of the greylist.

Installation:

- put the files somewhere in your website
- make sure you shield ...

Spreadsheet::WriteExcel for Linux (Popularity: ) : Spreadsheet::WriteExcel module is can be used to create native Excel binary files.

Formatted text and numbers can be written to multiple worksheets in a workbook. Formulas and functions are also supported. It is 100% Perl and doesn't require any Windows libraries ...

threading2 for Linux (Popularity: ) : threading2 is just like the standard threading module, but awesome.

This module is designed as a drop-in replacement and extension for the default "threading" module. It has two main objectives:

* implement primitives using native platform functionality where possible
* expose more sophisticated ...

Snort2PF (Popularity: ) : Snort2Pf can help you to turn your local Snort installation easily into an "intrusion detection and prevention system", rather than simply using it for post-mortem analysis. Such a system also blocks the recognized violations.. . Publisher of Snort2PF, Author of ...
slack1f42 (Popularity: ) : slack1f42 is a command-line tool for reading and editing 1f42 H262 maps.

The 1f42 H262 maps are H262 (or MPEG if you very much prefer) stream descriptions containing information such as stream frame rate, stream duration and number of frames, file ...

User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
AD


Rate me
supported os's
stats
downloads 8
version 0.19
size in Kb 10
popularity   
942/1272475
user rating 0/10
our rating 0 Stars
share info
Recommend Tie::Queuefor Linux
Report spyware
New Software
Popular Software
Latest Reviews