Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.333.903 Times

Tie::Queuefor Linux 0.19

Company: Dulaunoy Fabrice
Date Added: October 29, 2013  |  Visits: 438

Tie::Queuefor Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (48 downloads)



Tie an ARRAY over a TokyTyrant DB and allow to push, pop shift data.<br /> <br />Tie::Queue requires TokyoTyrant (database and Perl module.) If the serialisation is required, the module Data::Serilizer is also required<br /> <br />The normal ARRAY function present are<br /> <br /> push<br /> pop<br /> shift<br /> exists<br /> scalar<br /> storesize ( to allow undef @a)<br /> <br />Specific function<br /> <br /> CLEAR<br /> SYNC<br /> REPAIR<br /> <br />The following function are not implemented.<br /> <br /> EXTEND<br /> STORE<br /> DELETE<br /> SPLICE<br /><br />SYNOPSIS<br /><br /> use Tie::Queue;<br /> use Data::Dumper;<br /><br /> ## Queue creation<br /> # This queue is not re-initialised at each execution of the script<br /> # the default namespace is 'Tie-Queue'<br /> # and each item are non serialized<br /> tie my @a, 'Tie::Queue', '127.0.0.1', 1978, 0;<br /><br /> # This queue is NOT re-initialised at each execution of the script<br /> # and each item are non serialized<br /> # the namespace is 'second_queue'<br /> tie my @b, 'Tie::Queue', '127.0.0.1', 1978, 1 , 0 , 'second_queue';<br /><br /> ## put some data in the queue<br /> for ( 101 .. 110 )<br /> {<br /> push @a, $_;<br /> }<br /><br /> for ( 1001 .. 1005 )<br /> {<br /> push @ab, $_;<br /> }<br /><br /> push @b, 'some text';<br /> push<br /> ## show the content of the queue<br /> print Dumper( @a );<br /> ## print the size of the queue<br /> print "size of array=". scalar @a. "<br />";<br /> ## remove the latest pushed element from the queue ( the newest)<br /> $res1 = pop @a;<br /> print "latest element $res1<br />";<br /> print "size of array=". scalar @a. "<br />";<br /> print Dumper( @a );<br /> $res2 = $a[3];<br /> print "element 3 = $res2<br />";<br /> ## remove the first element from the queue ( the oldest )<br /> $res3 = shift @a;<br /> print "first element $res3<br />";<br /> print "size of array=". scalar @a. "<br />";<br /> print Dumper( @a );<br /> if ( exists $a[4] )<br /> {<br /> print "elem 4 exists<br />";<br /> }<br /> else<br /> {<br /> print "elem 4 NOT exists<br />";<br /> }<br /><br /> if ( exists $a[40] )<br /> {<br /> print "elem 40 exists<br />";<br /> }<br /> else<br /> {<br /> print "elem 40 is NOT existing<br />";<br /> }<br /><br /><br /> (tied @a)->CLEAR;<br /> print "size of array=". scalar @a. "<br />";<br /><br /> ########################<br /> # this queue is re-initialised at each execution of the script<br /> # and each item are serialized<br /> # and the name space is 'third_queue_serialized'<br /> tie my @c, 'Tie::Queue', '127.0.0.1', 1978, 1 , 1 , 'third_queue_serialized';<br /> my %test = ( a => 'key_a', b => 'key_B' , c => 3 );<br /> print Dumper(%test);<br /> push @d , %test;<br /> my $r = pop @d;<br /> print Dumper($r)<br /> #######################

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Array Dquot Dumper Element Execution Exists Existsquot Function Linux Module Print Queue Queuefor Queuefor Linux Quotelem Quotquot Quotsize Reinitialised Scalar Script Serialized Shift Tie Tie Qu Tie Queuefor Tiequeue
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


TIE::QUEUEFOR LINUX RELATED
Modules  -  Page Array 5.x-1.x-de
The pagearray module is a small (single function) helper module that can be used whenever there is a need to load the output of any Drupal path in data form. Based on the code in index.php, Page Array bypasses the theme('page') call, instead...
10 KB  
Libraries  -  Chart::Graph::Gnuplot 3.2
Chart::Graph::Gnuplot is a function in module Chart::Graph that lets you generate graphs on the fly in perl. SYNOPSIS use Chart::Graph::Gnuplot qw(&gnuplot); gnuplot(%global_options, [%data_set_options, @matrix], [%data_set_options,...
8.19 KB  
Libraries  -  Devel::TraceFuncs 0.1
Devel::TraceFuncs is a Perl module with trace function calls as they happen. SYNOPSIS Usage: require Devel::TraceFuncs; max_trace_depth 5; trace_file "foo.out"; trace_file $file_handle; sub foo { IN(my $f, "a message"); DEBUG...
4.1 KB  
Miscellaneous  -  EXPAND Script 1.1
For an array A and a vector B, the function replicates each one's of A's elements by B.The results are tiled into an array in the same order as the elements of A, so that the result is size: size(A).*SZ.Therefore the number of elements of SZ must...
10 KB  
Libraries  -  Tie::Array::RestrictUpdates 0.01
Tie::Array::RestrictUpdates can limit the number of times you change elements in an array. SYNOPSIS use Tie::Array::RestrictUpdates; tie @foo,"Tie::Array::RestrictUpdates",1; # Default limit is 1. # Every element from the array can only be...
3.07 KB  
Libraries  -  Math::Amoeba 0.04
Math::Amoeba is a Multidimensional Function Minimization. SYNOPSIS use Math::Amoeba qw(ConstructVertices EvaluateVertices Amoeba MinimiseND); my ($vertice,$y)=MinimiseND(@guess,@scales,&func,$tol,$itmax,$verbose); my...
4.1 KB  
Libraries  -  Variable::Strongly::Typed::Array 1.1.0
Variable::Strongly::Typed::Array is a Perl module for strongly typed array. SYNOPSIS This class is utilized by Variable::Strongly::Typed - you dont access this directly my @array_of_ints :TYPE(int); # Each slot must contain an int my...
10.24 KB  
Modules  -  Elysia Cron 6.x-1.2
Extended cron support with crontab-like scheduling (you can run some cron hooks every day at a specified hour, other only monthly and so on...) and other features: * crontab-like scheduling configuration of each job. * grouping of jobs in channels...
20.48 KB  
Modules  -  Views PHP Array 6.x-1.0.x-de
This module will implement Views display plugin that enable getting the output of a view in PHP array format. This module can be useful for developer who needs to further process view output.For both Site Builder and Developer's guide to Views PHP...
10 KB  
Programming  -  Queue::Dir 0.01
Queue::Dir allows the manipulation of objects placed in a queue. The queue is implemented as a directory where each object is stored as a file. METHODS The following methods are defined: my $q = new Queue::File (...)
10.24 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB